forked from bofh/fetsite
Merge branch 'master' of http://github.com/fetsite/fetsite
This commit is contained in:
@@ -27,12 +27,16 @@
|
||||
<h2>Themen</h2>
|
||||
<% end %>
|
||||
|
||||
<% @themen.each do |thema| %>
|
||||
<ul class="unstyled content-list" style="max-width:70em">
|
||||
|
||||
<% @themen.each do |thema| %>
|
||||
<% if can? :show, thema %>
|
||||
<li><%= link_to thema.title,thema %>
|
||||
<div class="contentbox">
|
||||
<%= render :partial=>"themen/small", :object=>thema %>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<% end %>
|
||||
|
||||
<% end %>
|
||||
</ul>
|
||||
|
||||
@@ -31,21 +31,38 @@
|
||||
<%= f.input :text, :as=>:tinymce_text,:label=>false, :input_html=>{:rows=>20} %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<% unless I18n.locale == :de %>
|
||||
<% 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"} %>
|
||||
<%= f.action :cancel, :as => :link %>
|
||||
<% end %>
|
||||
<% end %><% end %>
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
|
||||
<% unless I18n.locale == :de %>
|
||||
<% I18n.with_locale(:de) do %>
|
||||
<%= raw(@thema.text) %>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
|
||||
<%= 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"} %>
|
||||
<%= f.action :cancel, :as => :link %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<% end %>
|
||||
<% end %>
|
||||
<%= tinymce %>
|
||||
<%= tinymce_icon_choice %>
|
||||
<h2>Attachments:</h2>
|
||||
<%= render :partial => "themen/select", :object => @thema,:locals =>{ :editor => :true} %>
|
||||
|
||||
</div>
|
||||
|
||||
<%= tinymce_icon_choice %>
|
||||
<h2>Attachments:</h2>
|
||||
<%= render :partial => "themen/select", :object => @thema,:locals =>{ :editor => :true} %>
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user