Neuigkeiten updateund lva

This commit is contained in:
Andreas Stephanides
2013-03-24 00:53:30 +01:00
parent 7494e76701
commit d6ce165782
10 changed files with 123 additions and 48 deletions

View File

@@ -1,5 +1,11 @@
<div style="border: solid 1px; padding:2px"><p>
<b><%= link_to "Modul "+ modul.name , modul_path(modul) %> </b>
<b><%=
if modul.name.nil?
name=""
else
name=modul.name
end
link_to "Modul "+name , modul_path(modul) %> </b>
</p>
<p>
<%= raw(modul.desc) %>
@@ -11,5 +17,5 @@ LVAs:
<% end %>
</ul>
<% link_to '<i class="icon-pencil"></i>'.html_safe+I18n.t("common.edit"), edit_modul_path(modul) %>
<% # @toolbar_elements << {:icon=>:pencil,:text=>I18n.t("common.edit"),:path=> edit_modul_path(modul)} %>
</div>

View File

@@ -1,2 +1,5 @@
<h2><%=neuigkeit.title %></h2>
<h2><%= link_to neuigkeit.title,neuigkeit_path(neuigkeit) %></h2>
<%= if !neuigkeit.author.nil?
neuigkeit.author.name
end %>
<p><%= raw(neuigkeit.text) %></p>

View File

@@ -1,11 +1,14 @@
<ul class="breadcrumb">
<li><%= link_to "Neuigkeiten", rubriken_path %></li>
<li><span class="divider">/</span></li>
<li><%= link_to @neuigkeit.rubrik.name , rubrik_path(@neuigkeit.rubrik) %> </li>
</ul>
<p id="notice"><%= notice %></p>
<%= render @neuigkeit %>
<p>
<b>Datum:</b>
<%= @neuigkeit.datum %>
</p>
<% elements=[link_to('Edit', edit_neuigkeit_path(@neuigkeit))]
elements << link_to('Back', rubrik_path(@neuigkeit.rubrik)) %>
<%= toolbar_html (elements) %>
<%= toolbar_html (@toolbar_elements) %>

View File

@@ -40,3 +40,5 @@
<%= link_to 'Back', rubriken_path %> |
<%= link_to 'Destroy', @rubrik, method: :delete, data: { confirm: 'Are you sure?' } %>
</span></div>
<%= toolbar_html(@toolbar_elements)%>

View File

@@ -12,3 +12,4 @@
<br />
<%= link_to I18n.t("studien.new"), new_studium_path %>
<%= toolbar_html(@toolbar_elements) %>