forked from bofh/fetsite
Neuigkeiten Link
Querverweise für Neuigkeiten
This commit is contained in:
21
app/views/galleries/_nlink.html.erb
Normal file
21
app/views/galleries/_nlink.html.erb
Normal file
@@ -0,0 +1,21 @@
|
||||
<div class="media gallery-block">
|
||||
<div class="pull-left" href="#">
|
||||
<%= if(nlink.fotos.empty?)
|
||||
image_tag "no_image_128.png", {:class => "img-rounded"}
|
||||
else
|
||||
image_tag nlink.fotos.sample.datei.big_thumb.url, {:class => "img-rounded"}
|
||||
end %>
|
||||
</div>
|
||||
<div class="media-body">
|
||||
<small class="pull-left"><%= nlink.fotos.size.to_s + " " + I18n.t('fotos.bilder')%> </small>
|
||||
<small class="pull-right"><%=I18n.l(nlink.try(:datum).try(:to_date)) unless nlink.try(:datum).try(:to_date).nil? %></small></br>
|
||||
<h1><%= nlink.name %></h1>
|
||||
<p>
|
||||
<%= if nlink.desc.split.size > Gallery::WORD_COUNT
|
||||
nlink.desc.split[0..Gallery::WORD_COUNT].join(" ") + " ..."
|
||||
else
|
||||
nlink.desc
|
||||
end%>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -25,6 +25,27 @@
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="media gallery-block">
|
||||
<div class="pull-left" href="#">
|
||||
<%= if(gallery.fotos.empty?)
|
||||
image_tag "no_image_128.png", {:class => "img-rounded"}
|
||||
else
|
||||
image_tag gallery.fotos.sample.datei.big_thumb.url, {:class => "img-rounded"}
|
||||
end %>
|
||||
</div>
|
||||
<div class="media-body">
|
||||
<small class="pull-left"><%= gallery.fotos.size.to_s + " " + I18n.t('fotos.bilder')%> </small>
|
||||
<small class="pull-right"><%=I18n.l(gallery.try(:datum).try(:to_date)) unless gallery.try(:datum).try(:to_date).nil? %></small></br>
|
||||
<h1><%= gallery.name %></h1>
|
||||
<p>
|
||||
<%= if gallery.desc.split.size > Gallery::WORD_COUNT
|
||||
gallery.desc.split[0..Gallery::WORD_COUNT].join(" ") + " ..."
|
||||
else
|
||||
gallery.desc
|
||||
end%>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<% end %> <!-- end link -->
|
||||
</div> <!-- close span6 -->
|
||||
<% end %> <!-- end row -->
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<div class="content-wrap content-column">
|
||||
<%= semantic_form_for :search,:remote=>true, :url=>search_home_index_path, :html=>{:id=>"search_form", :method=>'get'} do |f| %>
|
||||
<%= f.input :query, :input_html => { :name => 'query' } %>
|
||||
<%= f.input :query, :input_html => { :name => 'query' } , :label=>false %>
|
||||
<% end %>
|
||||
<script>
|
||||
$( document ).ready(function() {
|
||||
|
||||
3
app/views/lvas/_nlink.html.erb
Normal file
3
app/views/lvas/_nlink.html.erb
Normal file
@@ -0,0 +1,3 @@
|
||||
<h2><%= nlink.title %></h2>
|
||||
<% render :partial=> "lvas/lva", :object=>nlink %>
|
||||
=
|
||||
11
app/views/neuigkeiten/_nlink_list.html.erb
Normal file
11
app/views/neuigkeiten/_nlink_list.html.erb
Normal file
@@ -0,0 +1,11 @@
|
||||
<li>
|
||||
<%= link_to nlink_list.link do %>
|
||||
<div class="contentbox" >
|
||||
<% p = nlink_list.link_type.downcase.pluralize+"/nlink" %>
|
||||
<%= raw(strip_links(render :partial=>p, :object=>nlink_list.link )) %>
|
||||
</div>
|
||||
<% end %>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
12
app/views/neuigkeiten/_nlink_list_search.html.erb
Normal file
12
app/views/neuigkeiten/_nlink_list_search.html.erb
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
<li>
|
||||
<%= link_to nlink_list_search.title, nlink_list_search %>
|
||||
<%= link_to "add:"+nlink_list_search.title, create_link_rubrik_neuigkeit_path(@neuigkeit.rubrik,@neuigkeit, :link_id=>nlink_list_search.id, :link_type=>nlink_list_search.class.to_s) %>
|
||||
<div class="contentbox" >
|
||||
<% p = nlink_list_search.class.to_s.downcase.pluralize+"/nlink" %>
|
||||
<%= render :partial=>p, :object=>nlink_list_search %>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
@@ -16,17 +16,31 @@
|
||||
</div>
|
||||
<div class="media-body">
|
||||
<h1>
|
||||
<%= @neuigkeit.title%>
|
||||
|
||||
</h1>
|
||||
<%= @neuigkeit.title%>
|
||||
|
||||
</h1>
|
||||
<%= raw(@neuigkeit.text) %>
|
||||
<p></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<% @calentries1.each do |ce|%>
|
||||
<%= render ce unless ce.nil? %>
|
||||
<% end %>
|
||||
<%= render 'layouts/pretty_toolbar', :object=> @toolbar_elements %>
|
||||
</div>
|
||||
|
||||
Siehe auch:
|
||||
<ul>
|
||||
<div id="nlink_list">
|
||||
<%= render partial: "nlink_list", collection: @neuigkeit.nlinks %>
|
||||
</div>
|
||||
<div id="nlink_list_search">
|
||||
<%= render partial: "nlink_list_search", collection: @nlink_search %>
|
||||
</div>
|
||||
</ul>
|
||||
|
||||
<%= semantic_form_for :find_link, :url=>find_link_rubrik_neuigkeit_path(@rubrik,@neuigkeit), :html=>{:id=>"search_form", :method=>'get'} do |f| %>
|
||||
<%= f.input :query, :input_html => { :name => 'query' },:label=>false %>
|
||||
<% end %>
|
||||
|
||||
</div>
|
||||
|
||||
1
app/views/themen/_nlink.html.erb
Normal file
1
app/views/themen/_nlink.html.erb
Normal file
@@ -0,0 +1 @@
|
||||
<%= raw(strip_links(render :partial=> "themen/small", :object=>nlink)) %>
|
||||
@@ -1,5 +1,5 @@
|
||||
<div class="content-wrap content-column" >
|
||||
|
||||
<h2>sdffs</h2>
|
||||
<h1><%= @themengruppe.title %></h1>
|
||||
<p>
|
||||
<%= @themengruppe.text %>
|
||||
@@ -8,7 +8,7 @@
|
||||
<% @themengruppe.themen.each do |thema| %>
|
||||
<li>
|
||||
<div class="contentbox">
|
||||
<a href="#<%=thema.id%>">
|
||||
<a name="<%=thema.id%>" href="#<%=thema.id%>">
|
||||
<h2><%= thema.title %></h2>
|
||||
</a>
|
||||
<% unless thema.gremium.nil? %>
|
||||
@@ -17,6 +17,9 @@
|
||||
</p>
|
||||
<% end %>
|
||||
<%= render :partial => 'themen/small', :object => thema %>
|
||||
<% thema.nlinks.each do |l| %>
|
||||
<%= render l.neuigkeit %>
|
||||
<% end %>
|
||||
</div>
|
||||
</li>
|
||||
<% end %>
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
<div class="content-wrap content-column" >
|
||||
<h1><%= @themengruppe.title %></h1>
|
||||
<p>
|
||||
<%= @themengruppe.text %>
|
||||
</p>
|
||||
<ul class="unstyled linkbox-list" >
|
||||
<% @themen.each do |thema| %>
|
||||
<li>
|
||||
<div class="contentbox">
|
||||
<a href="#<%=thema.id%>">
|
||||
<h2><%= thema.title %></h2>
|
||||
</a>
|
||||
<% unless thema.gremium.nil? %>
|
||||
<p>
|
||||
<%= link_to "Zu dem Gremium ..." , thema.gremium %>
|
||||
</p>
|
||||
<% end %>
|
||||
<%= render :partial => 'themen/small', :object => thema %>
|
||||
</div>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
||||
<%= render :partial=>'layouts/pretty_toolbar' unless @toolbar_elements.empty?%>
|
||||
</div>
|
||||
Reference in New Issue
Block a user