forked from bofh/fetsite
toolbar_helper
This commit is contained in:
@@ -6,5 +6,12 @@ module ApplicationHelper
|
|||||||
current_url({:locale=>target_locale}) .sub "/"+I18n.locale.to_s+"/", "/"+target_locale.to_s+"/"
|
current_url({:locale=>target_locale}) .sub "/"+I18n.locale.to_s+"/", "/"+target_locale.to_s+"/"
|
||||||
|
|
||||||
end
|
end
|
||||||
|
def toolbar_html(elemente)
|
||||||
|
html = ""
|
||||||
|
elemente.each do |e|
|
||||||
|
html =html + e + " | "
|
||||||
|
end
|
||||||
|
#html= html + "</ul>"
|
||||||
|
raw(html)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1,20 +1,11 @@
|
|||||||
<p id="notice"><%= notice %></p>
|
<p id="notice"><%= notice %></p>
|
||||||
|
<%= render @neuigkeit %>
|
||||||
<p>
|
|
||||||
<b>Title:</b>
|
|
||||||
<%= @neuigkeit.title %>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p>
|
|
||||||
<b>Text:</b>
|
|
||||||
<%= @neuigkeit.text %>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<b>Datum:</b>
|
<b>Datum:</b>
|
||||||
<%= @neuigkeit.datum %>
|
<%= @neuigkeit.datum %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
||||||
<%= link_to 'Edit', edit_neuigkeit_path(@neuigkeit) %> |
|
<% elements=[link_to('Edit', edit_neuigkeit_path(@neuigkeit))]
|
||||||
<%= link_to 'Back', neuigkeiten_path %>
|
elements << link_to('Back', rubrik_path(@neuigkeit.rubrik)) %>
|
||||||
|
<%= toolbar_html (elements) %>
|
||||||
|
|||||||
Reference in New Issue
Block a user