forked from bofh/fetsite
Merge branch 'master' of https://github.com/HausdorffHimself/fetsite
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
<%= semantic_form_for @thema do |f| %>
|
||||
<%= f.inputs do %>
|
||||
<%= f.input :title %>
|
||||
<%= f.input :picture, :as => :file %>
|
||||
<%= f.input :themengruppe %>
|
||||
<%= f.input :text, :as=>:tinymce_text%>
|
||||
<% end %>
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
<%= semantic_form_for @themengruppe do |f| %>
|
||||
<%= f.inputs do %>
|
||||
<%= f.input :title %>
|
||||
<%= f.input :picture, :as => :file %>
|
||||
<%= f.input :text %>
|
||||
|
||||
<% end %>
|
||||
|
||||
<%= f.actions do %>
|
||||
|
||||
@@ -1,18 +1,34 @@
|
||||
|
||||
<h3> <%= link_to themengruppe.title, themengruppe %> </h3>
|
||||
<p>
|
||||
<%= if themengruppe.text.split.size > Themengruppe::WORD_COUNT
|
||||
themengruppe.text.split[0..Themengruppe::WORD_COUNT].join(" ") + " ..."
|
||||
else
|
||||
themengruppe.text
|
||||
end%>
|
||||
</p>
|
||||
<div class="row-fluid">
|
||||
<div class="span2">
|
||||
<%= image_tag themengruppe.picture.thumb.url,{:class=>"img-circle"} %>
|
||||
</div>
|
||||
<div class="span10">
|
||||
<h3><%= link_to themengruppe.title, themengruppe %> </h3>
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
<b><%= I18n.t("themengruppe.themen") %></b>
|
||||
<ul>
|
||||
<% themengruppe.themen.each do |t| %>
|
||||
<li>
|
||||
<%= render t %>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
<p>
|
||||
<%= if themengruppe.text.split.size > Themengruppe::WORD_COUNT
|
||||
themengruppe.text.split[0..Themengruppe::WORD_COUNT].join(" ") + " ..."
|
||||
else
|
||||
themengruppe.text
|
||||
end%>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row-fluid">
|
||||
<div class="span12">
|
||||
<b><%= I18n.t("themengruppe.themen") %></b>
|
||||
<ul>
|
||||
<% themengruppe.themen.each do |t| %>
|
||||
<li>
|
||||
<%= render t %>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,21 +1,23 @@
|
||||
<div class="container-fluid">
|
||||
|
||||
<% @themengruppen.each_slice(2) do |row| %>
|
||||
<div class="row-fluid">
|
||||
<% row.each do |themengruppe| %>
|
||||
<div class="span6 equalheight">
|
||||
<div class="themengruppe">
|
||||
<%= render themengruppe %>
|
||||
<p>
|
||||
<%= link_to 'Edit', edit_themengruppe_path(themengruppe) %>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
<% @themengruppen.each_slice(2) do |row| %>
|
||||
<div class="row-fluid">
|
||||
<% row.each do |themengruppe| %>
|
||||
<div class="span6 equalheight">
|
||||
<div class="container-fluid">
|
||||
<%= render themengruppe %>
|
||||
<br/>
|
||||
<div class="row-fluid">
|
||||
<%= link_to 'Edit', edit_themengruppe_path(themengruppe) %>
|
||||
</div>
|
||||
</div>
|
||||
<br/>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<br />
|
||||
|
||||
<br/>
|
||||
|
||||
<script class="hidden-phone">
|
||||
|
||||
|
||||
Reference in New Issue
Block a user