forked from bofh/fetsite
i18n fetprofile
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
<%= f.hidden_field :picture_cache %>
|
||||
<label>
|
||||
<%= f.check_box :remove_picture %>
|
||||
Bild Entfernen
|
||||
<%= I18n.t('profile.remove_picture') %>
|
||||
</label>
|
||||
</div>
|
||||
<div class="span4"> <%= f.input :fetmailalias %></div>
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
<ul class="nav nav-tabs">
|
||||
<li <%= (request.fullpath == fetprofiles_path(filter: "active")|| request.fullpath == fetprofiles_path) ? 'class="active"'.html_safe : ''%> >
|
||||
<%= link_to "Aktive Mitglieder" , fetprofiles_path( filter: "active") %>
|
||||
<%= link_to I18n.t('profile.active_members') , fetprofiles_path( filter: "active") %>
|
||||
</li>
|
||||
<li>
|
||||
<%= link_to "Alle Gremien und Gruppen", gremien_path %>
|
||||
<%= link_to I18n.t('profile.all_groups'), gremien_path %>
|
||||
</li>
|
||||
<% for g in @gremientabs %>
|
||||
<li <%= (!@gremium.nil? && g == @gremium) ? 'class="active"'.html_safe : '' %> title="<%= g.name %>">
|
||||
@@ -11,7 +11,7 @@
|
||||
</li>
|
||||
<% end %>
|
||||
<li <%= (request.fullpath == fetprofiles_path(filter: "all")) ? 'class="active"'.html_safe : ''%> >
|
||||
<%= link_to "Alle Mitglieder" , fetprofiles_path( filter: "all") %>
|
||||
<%= link_to I18n.t('profile.all_members') , fetprofiles_path( filter: "all") %>
|
||||
</li>
|
||||
<% if can?(:verwalten,Gremium) %>
|
||||
<% if request.fullpath == verwalten_gremien_path %>
|
||||
@@ -19,7 +19,7 @@
|
||||
<% else %>
|
||||
<li class="pull-right">
|
||||
<% end %>
|
||||
<%= link_to "Verwaltung", verwalten_gremien_path %>
|
||||
<%= link_to I18n.t('common.verwalten'), verwalten_gremien_path %>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<h1>New fetprofile</h1>
|
||||
<h1><%= I18n.t('profile.new_profile')%></h1>
|
||||
|
||||
<%= render 'form' %>
|
||||
|
||||
<%= link_to 'Back', fetprofiles_path %>
|
||||
<%= link_to I18n.t('common.back'), fetprofiles_path %>
|
||||
|
||||
@@ -18,8 +18,8 @@
|
||||
<% @fetprofile.memberships.each do |m| %>
|
||||
<li>
|
||||
<%= render m %>
|
||||
<%= link_to 'edit', edit_fetprofile_membership_path(@fetprofile,m) if params["verwalten"] && can?(:delete, m)%>
|
||||
<%= link_to 'delete', [@fetprofile, m], method: :delete, data: {confirm: 'Sure to delete?'} if params["verwalten"] && can?(:delete, m ) %>
|
||||
<%= link_to I18n.t('common.edit'), edit_fetprofile_membership_path(@fetprofile,m) if params["verwalten"] && can?(:edit, m)%>
|
||||
<%= link_to I18n.t('common.delete'), [@fetprofile, m], method: :delete, data: {confirm: I18n.t('common.sure_del')} if params["verwalten"] && can?(:delete, m ) %>
|
||||
</li>
|
||||
<% end %>
|
||||
</ul>
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
<b><%= studium.typ%> </b>
|
||||
</p>
|
||||
<p><b><%=I18n.t("studien.desc")%>:</b><br>
|
||||
<%= !(studium.desc.to_s == "") ? studium.desc.html_safe : I18n.t("keine.beschreibung")%>
|
||||
<%= !(studium.desc.to_s == "") ? studium.desc_first_words.html_safe : I18n.t("keine.beschreibung")%>
|
||||
</p>
|
||||
|
||||
</div>
|
||||
|
||||
@@ -5,10 +5,12 @@ de:
|
||||
hello: "Hallo Welt"
|
||||
common:
|
||||
edit: "Bearbeiten"
|
||||
back: "Zurück"
|
||||
actions: "Aktionen"
|
||||
delete: "Löschen"
|
||||
verwalten: "Verwalten"
|
||||
back: "Zurück"
|
||||
sure_del: "Sicher endgültig löschen?"
|
||||
home:
|
||||
mtitle: "Menu"
|
||||
willkommen: "Willkommen bei der Fachschaft Elektrotechnik"
|
||||
@@ -82,4 +84,4 @@ de:
|
||||
blank: "Wählen Sie zumindest eine Modulgruppe aus"
|
||||
support:
|
||||
array:
|
||||
two_words_connector: ', '
|
||||
two_words_connector: ', '
|
||||
Reference in New Issue
Block a user