layout: if layouts/_footer exists, use it instead - merged with i18n
This commit is contained in:
parent
a05ab9a01e
commit
b6ceb95e13
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -25,6 +25,7 @@ app/views/home/privacy.*
|
||||||
app/views/home/about.*
|
app/views/home/about.*
|
||||||
app/views/home/chat.*
|
app/views/home/chat.*
|
||||||
app/views/home/404.*
|
app/views/home/404.*
|
||||||
|
app/views/layouts/_footer.*
|
||||||
app/assets/stylesheets/local/*
|
app/assets/stylesheets/local/*
|
||||||
public/favicon.ico
|
public/favicon.ico
|
||||||
public/apple-touch-icon*
|
public/apple-touch-icon*
|
||||||
|
|
|
@ -117,14 +117,17 @@
|
||||||
<%= yield %>
|
<%= yield %>
|
||||||
|
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
<a href="/moderations"><%= t('.moderationloglink') %></a>
|
<% if lookup_context.template_exists?("footer", "layouts", true) %>
|
||||||
|
<%= render :partial => "layouts/footer" %>
|
||||||
|
<% else %>
|
||||||
|
<a href="/moderations">Moderation Log</a>
|
||||||
<% if @user && !@user.is_new? &&
|
<% if @user && !@user.is_new? &&
|
||||||
(iqc = InvitationRequest.verified_count) > 0 %>
|
(iqc = InvitationRequest.verified_count) > 0 %>
|
||||||
<a href="/invitations"><%= t('.invitationqueuelink') %>(<%= iqc %>)</a>
|
<a href="/invitations">Invitation Queue(<%= iqc %>)</a>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% if @user && @user.is_moderator? &&
|
<% if @user && @user.is_moderator? &&
|
||||||
(hrc = HatRequest.count) > 0 %>
|
(hrc = HatRequest.count) > 0 %>
|
||||||
<a href="/hats/requests"><%= t('.hatrequestlink') %> (<%= hrc %>)</a>
|
<a href="/hats/requests">Hat Requests (<%= hrc %>)</a>
|
||||||
<% else %>
|
<% else %>
|
||||||
<a href="/hats"><%= t('.hatslink') %></a>
|
<a href="/hats"><%= t('.hatslink') %></a>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -134,6 +137,7 @@
|
||||||
<a href="https://twitter.com/journalduhacker"><%= t('.twitter') %></a>
|
<a href="https://twitter.com/journalduhacker"><%= t('.twitter') %></a>
|
||||||
<a href="https://framasphere.org/people/2aaaaba0110c0133c7ea2a0000053625"><%= t('.diaspora') %></a>
|
<a href="https://framasphere.org/people/2aaaaba0110c0133c7ea2a0000053625"><%= t('.diaspora') %></a>
|
||||||
<a href="https://framapiaf.org/@journalduhacker"><%= t('.mastodon') %></a>
|
<a href="https://framapiaf.org/@journalduhacker"><%= t('.mastodon') %></a>
|
||||||
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue