forked from bofh/fetsite
themessticker, cleanup routes
This commit is contained in:
@@ -33,8 +33,10 @@
|
||||
</div>
|
||||
</div>
|
||||
<% unless I18n.locale == :de %>
|
||||
@thema.text
|
||||
<% end %>
|
||||
<% I18n.with_locale(:de) do %>
|
||||
<%= raw(@thema.text) %>
|
||||
<% end %><% end %>
|
||||
|
||||
<%= f.actions do %>
|
||||
<%= f.action :submit, :as => :button, :label=> I18n.t("thema.save" ) %>
|
||||
<%= f.action :submit, :as => :button, :label=> I18n.t("thema.savecont"), :button_html=>{:value=>"continue"} %>
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
<h2><%= small.title %> <%= link_to fa_icon("pencil"), verwalten_thema_path(small) if can? :edit, small %></h2>
|
||||
</a>
|
||||
<% if small.is_outdated? %>
|
||||
<div style="background:red; width:100%"> Outdated </div>
|
||||
<div class="sticker sticker-red"> <%= I18n.t("thema.outdated") %> </div>
|
||||
<% end %>
|
||||
<% if small.isdraft %>
|
||||
<div style="background:yellow; width:100%"> isdraft </div>
|
||||
<div class="sticker sticker-yellow"><%= I18n.t("thema.isdraft") %> </div>
|
||||
|
||||
<% end %>
|
||||
<%= raw(small.text) %>
|
||||
@@ -19,8 +19,9 @@
|
||||
<%= raw(frage.text) %>
|
||||
</p>
|
||||
<% end %>
|
||||
|
||||
<% unless small.hideattachment %>
|
||||
<%= render partial: "themen/attachment_list", object: small.attachments, locals:{editor: false} unless small.attachments.empty? %>
|
||||
<% end %>
|
||||
<br/>
|
||||
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
<div class="span6">
|
||||
<!--<b><%= I18n.t("themengruppe.themen") %></b>
|
||||
--><ul>
|
||||
<% themengruppe.themen.order(:priority).reverse.each do |t| %>
|
||||
<% themengruppe.themen.where(" (NOT hidelink) and ( NOT isdraft) ").order(:priority).reverse.each do |t| %>
|
||||
<li>
|
||||
<%= render t %>
|
||||
</li>
|
||||
|
||||
@@ -21,7 +21,9 @@
|
||||
<% end %>
|
||||
|
||||
<% thema.nlinks.each do |l| %>
|
||||
<li><%= render l.neuigkeit %></li>
|
||||
<li>
|
||||
<%= render l.neuigkeit %>
|
||||
</li>
|
||||
<% end %>
|
||||
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user