mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
Add classes to the FAQ, Terms of Service, and Privacy nav links so they can be individually styled
This commit is contained in:
parent
d1608bdfe9
commit
a8e4c4caa1
1 changed files with 5 additions and 5 deletions
|
@ -1,12 +1,12 @@
|
|||
<ul class="nav-pills">
|
||||
<% if @faq_overriden %>
|
||||
<li><a class="<%= @page == 'faq' ? 'active' : '' %>" href="<%=guidelines_path%>"><%=t "guidelines" %></a></li>
|
||||
<li><a href="<%=faq_path%>"><%=t "js.faq" %></a></li>
|
||||
<li class="nav-item-guidelines"><a class="<%= @page == 'faq' ? 'active' : '' %>" href="<%=guidelines_path%>"><%=t "guidelines" %></a></li>
|
||||
<li class="nav-item-faq"><a href="<%=faq_path%>"><%=t "js.faq" %></a></li>
|
||||
<% else %>
|
||||
<li><a class="<%= @page == 'faq' ? 'active' : '' %>" href="<%=faq_path%>"><%=t "js.faq" %></a></li>
|
||||
<li class="nav-item-faq"><a class="<%= @page == 'faq' ? 'active' : '' %>" href="<%=faq_path%>"><%=t "js.faq" %></a></li>
|
||||
<% end %>
|
||||
<li><a href="<%=tos_path%>" class="<%= @page == 'tos' ? 'active' : '' %>"><%=t "terms_of_service.title" %></a></li>
|
||||
<li><a href="<%=privacy_path%>" class="<%= @page == 'privacy' ? 'active' : '' %>"><%=t "privacy" %></a></li>
|
||||
<li class="nav-item-tos"><a href="<%=tos_path%>" class="<%= @page == 'tos' ? 'active' : '' %>"><%=t "terms_of_service.title" %></a></li>
|
||||
<li class="nav-item-privacy"><a href="<%=privacy_path%>" class="<%= @page == 'privacy' ? 'active' : '' %>"><%=t "privacy" %></a></li>
|
||||
</ul>
|
||||
|
||||
<% if staff? %>
|
||||
|
|
Loading…
Reference in a new issue