layout: if layouts/_footer exists, use it instead - merged with i18n
This commit is contained in:
부모
a05ab9a01e
커밋
b6ceb95e13
|
@ -25,6 +25,7 @@ app/views/home/privacy.*
|
|||
app/views/home/about.*
|
||||
app/views/home/chat.*
|
||||
app/views/home/404.*
|
||||
app/views/layouts/_footer.*
|
||||
app/assets/stylesheets/local/*
|
||||
public/favicon.ico
|
||||
public/apple-touch-icon*
|
||||
|
|
|
@ -117,23 +117,27 @@
|
|||
<%= yield %>
|
||||
|
||||
<div id="footer">
|
||||
<a href="/moderations"><%= t('.moderationloglink') %></a>
|
||||
<% if @user && !@user.is_new? &&
|
||||
(iqc = InvitationRequest.verified_count) > 0 %>
|
||||
<a href="/invitations"><%= t('.invitationqueuelink') %>(<%= iqc %>)</a>
|
||||
<% end %>
|
||||
<% if @user && @user.is_moderator? &&
|
||||
(hrc = HatRequest.count) > 0 %>
|
||||
<a href="/hats/requests"><%= t('.hatrequestlink') %> (<%= hrc %>)</a>
|
||||
<% if lookup_context.template_exists?("footer", "layouts", true) %>
|
||||
<%= render :partial => "layouts/footer" %>
|
||||
<% else %>
|
||||
<a href="/hats"><%= t('.hatslink') %></a>
|
||||
<a href="/moderations">Moderation Log</a>
|
||||
<% if @user && !@user.is_new? &&
|
||||
(iqc = InvitationRequest.verified_count) > 0 %>
|
||||
<a href="/invitations">Invitation Queue(<%= iqc %>)</a>
|
||||
<% end %>
|
||||
<% if @user && @user.is_moderator? &&
|
||||
(hrc = HatRequest.count) > 0 %>
|
||||
<a href="/hats/requests">Hat Requests (<%= hrc %>)</a>
|
||||
<% else %>
|
||||
<a href="/hats"><%= t('.hatslink') %></a>
|
||||
<% end %>
|
||||
<a href="/privacy"><%= t('.privacylink') %></a>
|
||||
<a href="/about"><%= t('.aboutlink') %></a>
|
||||
<a href="https://blog.journalduhacker.net"><%= t('.blog') %></a>
|
||||
<a href="https://twitter.com/journalduhacker"><%= t('.twitter') %></a>
|
||||
<a href="https://framasphere.org/people/2aaaaba0110c0133c7ea2a0000053625"><%= t('.diaspora') %></a>
|
||||
<a href="https://framapiaf.org/@journalduhacker"><%= t('.mastodon') %></a>
|
||||
<% end %>
|
||||
<a href="/privacy"><%= t('.privacylink') %></a>
|
||||
<a href="/about"><%= t('.aboutlink') %></a>
|
||||
<a href="https://blog.journalduhacker.net"><%= t('.blog') %></a>
|
||||
<a href="https://twitter.com/journalduhacker"><%= t('.twitter') %></a>
|
||||
<a href="https://framasphere.org/people/2aaaaba0110c0133c7ea2a0000053625"><%= t('.diaspora') %></a>
|
||||
<a href="https://framapiaf.org/@journalduhacker"><%= t('.mastodon') %></a>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
|
|
불러오는 중...
Reference in New Issue