weitere classen durchsuchen
This commit is contained in:
@@ -1,8 +1,17 @@
|
||||
|
||||
<% unless @results.nil? %>
|
||||
<%= @results.results.each do |res| %>
|
||||
<%= render res %>
|
||||
<ul class="unstyled linkbox-list">
|
||||
<% @results.results.each do |res| %>
|
||||
<% if can?(:show, res) %>
|
||||
<li>
|
||||
<%= link_to res, :class=>:linkbox do %>
|
||||
<%= render :partial=>res.class.to_s.pluralize.downcase+"/nlink", :object=>res %>
|
||||
<% end %>
|
||||
|
||||
</li>
|
||||
<% end %>
|
||||
<% end %>
|
||||
</ul>
|
||||
<% end %>
|
||||
|
||||
<% unless @neuigkeiten.empty? %>
|
||||
|
||||
1
app/views/modulgruppen/_nlink.html.erb
Normal file
1
app/views/modulgruppen/_nlink.html.erb
Normal file
@@ -0,0 +1 @@
|
||||
<h2><%= nlink.name %></h2>
|
||||
@@ -1,9 +1,9 @@
|
||||
|
||||
<h1><%= @modul.name %></h1>
|
||||
<h1><%= modul.name %></h1>
|
||||
<div class="row-fluid">
|
||||
<div class="span8">
|
||||
<h2><%=I18n.t("modul.lvas")%></h2>
|
||||
<% @modul.lvas.each_slice(3) do |row| %>
|
||||
<% modul.lvas.each_slice(3) do |row| %>
|
||||
<ul>
|
||||
<% row.each do |lv| %>
|
||||
<li>
|
||||
@@ -14,14 +14,14 @@
|
||||
<% end %>
|
||||
<h2><%=I18n.t("modul.desc")%></h2>
|
||||
<p>
|
||||
<%= raw(@modul.desc) %>
|
||||
<%= raw(modul.desc) %>
|
||||
</p>
|
||||
</div>
|
||||
<div class="span4">
|
||||
<div class="lva-sidebar">
|
||||
<h2><%=I18n.t("modul.mgs")%></h2>
|
||||
<ul>
|
||||
<% @modul.modulgruppen.each do |mg| %>
|
||||
<% modul.modulgruppen.each do |mg| %>
|
||||
<li>
|
||||
<%= render 'modulgruppen/kurz', :modulgruppe=>mg %>
|
||||
</li>
|
||||
|
||||
2
app/views/moduls/_nlink.html.erb
Normal file
2
app/views/moduls/_nlink.html.erb
Normal file
@@ -0,0 +1,2 @@
|
||||
Modul:
|
||||
<%= nlink.name %>
|
||||
3
app/views/neuigkeiten/_nlink.html.erb
Normal file
3
app/views/neuigkeiten/_nlink.html.erb
Normal file
@@ -0,0 +1,3 @@
|
||||
|
||||
<h2> <%= nlink.title %> </h2>
|
||||
|
||||
3
app/views/rubriken/_nlink.html.erb
Normal file
3
app/views/rubriken/_nlink.html.erb
Normal file
@@ -0,0 +1,3 @@
|
||||
|
||||
<h2 ><%= nlink.name %></h2>
|
||||
|
||||
0
app/views/rubriken/_rubrik.html.erb
Normal file
0
app/views/rubriken/_rubrik.html.erb
Normal file
@@ -1,2 +1,17 @@
|
||||
<h2><%= nlink.name %></h2>
|
||||
<p><%= nlink.desc_first_words %></p>
|
||||
<% studium=nlink %>
|
||||
<div class="media">
|
||||
<% unless studium.picture.thumb.url.nil? %>
|
||||
<div class="pull-left">
|
||||
<%= image_tag studium.picture.thumb.url %>
|
||||
</div>
|
||||
<% end %>
|
||||
<div class="media-body">
|
||||
<h2>
|
||||
<%= studium.name + " " + studium.zahl.to_s %>
|
||||
</h2>
|
||||
<p>
|
||||
<b><%= studium.typ%> </b>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
1
app/views/themengruppen/_nlink.html.erb
Normal file
1
app/views/themengruppen/_nlink.html.erb
Normal file
@@ -0,0 +1 @@
|
||||
<h2><%= nlink.title %> </h2>
|
||||
Reference in New Issue
Block a user