forked from bofh/fetsite
nice Gremium - Themen Links
This commit is contained in:
@@ -14,7 +14,8 @@
|
|||||||
class Gremium < ActiveRecord::Base
|
class Gremium < ActiveRecord::Base
|
||||||
TYPEN={1=>"offiziell", 2=>"offiziell-temporär", 3 => "inoffiziell",4=>"inoffiziell-tempo", 11=> "berufungskommission"} # Kategorien, im Wesentlichen wichtig für Listung oder nicht Listung
|
TYPEN={1=>"offiziell", 2=>"offiziell-temporär", 3 => "inoffiziell",4=>"inoffiziell-tempo", 11=> "berufungskommission"} # Kategorien, im Wesentlichen wichtig für Listung oder nicht Listung
|
||||||
GESCHLECHT={0=>"saechlich", 1 => "maennlich", 2 => "weiblich"} # Geschlecht des Gremiums zur richtige Deklination
|
GESCHLECHT={0=>"saechlich", 1 => "maennlich", 2 => "weiblich"} # Geschlecht des Gremiums zur richtige Deklination
|
||||||
ART2FALL={0=>"des", 1=>"des",2=>"der"} # Artikel 2.Fall abhängig vom Geschlecht
|
ART2FALL={0=>"des", 1=>"des",2=>"der"} # Artikel 2.Fall abhängig vom Geschlecht
|
||||||
|
ART4FALL={0=>"das", 1=>"den",2=>"die"} # Artikel 2.Fall abhängig vom Geschlecht
|
||||||
FILTER={11=>I18n.t("gremium.filter.berufung.title")}
|
FILTER={11=>I18n.t("gremium.filter.berufung.title")}
|
||||||
TEXT={11=>I18n.t("gremium.filter.berufung.text")}
|
TEXT={11=>I18n.t("gremium.filter.berufung.text")}
|
||||||
|
|
||||||
@@ -30,5 +31,9 @@ class Gremium < ActiveRecord::Base
|
|||||||
def fall2
|
def fall2
|
||||||
Gremium::ART2FALL[self.geschlecht.to_i].to_s+" "+ self.name.to_s+ ((self.geschlecht.to_i==1||self.geschlecht.to_i==0)? "s":"")
|
Gremium::ART2FALL[self.geschlecht.to_i].to_s+" "+ self.name.to_s+ ((self.geschlecht.to_i==1||self.geschlecht.to_i==0)? "s":"")
|
||||||
end
|
end
|
||||||
|
def fall4
|
||||||
|
Gremium::ART4FALL[self.geschlecht.to_i].to_s+" "+ self.name.to_s+ ((self.geschlecht.to_i==1||self.geschlecht.to_i==0)? "":"")
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@
|
|||||||
<% unless @gremium.thema.nil? %>
|
<% unless @gremium.thema.nil? %>
|
||||||
<p>
|
<p>
|
||||||
<%= link_to thema_path(@gremium.thema) do%>
|
<%= link_to thema_path(@gremium.thema) do%>
|
||||||
<%= fa_icon "book 2x" %> Mehr zum Gremium lesen ...
|
<%= fa_icon "book 2x" %> Mehr über <%=@gremium.fall4 %> erfahren
|
||||||
<% end %>
|
<% end %>
|
||||||
</p>
|
</p>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
@@ -11,11 +11,6 @@
|
|||||||
<a name="<%=thema.id%>" href="#<%=thema.id%>">
|
<a name="<%=thema.id%>" href="#<%=thema.id%>">
|
||||||
<h2><%= thema.title %></h2>
|
<h2><%= thema.title %></h2>
|
||||||
</a>
|
</a>
|
||||||
<% unless thema.gremium.nil? %>
|
|
||||||
<p>
|
|
||||||
<%= link_to fa_icon("users 2x")+" Zu dem Gremium ..." , thema.gremium %>
|
|
||||||
</p>
|
|
||||||
<% end %>
|
|
||||||
<%= render :partial => 'themen/small', :object => thema %>
|
<%= render :partial => 'themen/small', :object => thema %>
|
||||||
tools:
|
tools:
|
||||||
<%
|
<%
|
||||||
@@ -24,11 +19,18 @@ tools:
|
|||||||
|
|
||||||
%>
|
%>
|
||||||
<%= render :partial=>'layouts/pretty_toolbar', :object=>@small_elements2 unless @small_elements2.empty? %>
|
<%= render :partial=>'layouts/pretty_toolbar', :object=>@small_elements2 unless @small_elements2.empty? %>
|
||||||
|
<ul class="unstyled">
|
||||||
|
<% unless thema.gremium.nil? %>
|
||||||
|
|
||||||
|
<li>
|
||||||
|
<%= link_to fa_icon("users 2x")+thema.gremium.name , thema.gremium,:class=>"linkbox" %>
|
||||||
|
</li>
|
||||||
|
<% end %>
|
||||||
|
|
||||||
<% thema.nlinks.each do |l| %>
|
<% thema.nlinks.each do |l| %>
|
||||||
<%= render l.neuigkeit %>
|
<li><%= render l.neuigkeit %></li>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|||||||
Reference in New Issue
Block a user