-
Notifications
You must be signed in to change notification settings - Fork 1.8k
/
Copy path_wikis.html.erb
29 lines (25 loc) · 979 Bytes
/
_wikis.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<% if wikis && wikis.length > 0 %>
<div class="d-none d-lg-inline wiki-list">
<h4><%= title %></h4>
<% wikis.each do |wiki| %>
<% unless (!node.nil? && wiki.nid == node.nid) %>
<p style="margin:14px 0 0;">
<i class="fa fa-<%= raw wiki.icon %>"></i>
<a href="<%= wiki.path %>">
<b><%= wiki.latest.title %></b>
</a>
</p>
<p>
<small style="color:#888;">
<%= raw translation('sidebar._wikis.updated_by', :time => time_ago_in_words(wiki.latest.updated_at), :url1 => "/profile/"+wiki.latest.author.name, :author => wiki.latest.author.name) %>
</small>
</p>
<% end %>
<% end %>
<% if params[:controller] == "search" %>
<p><a href="/tag/<%= params[:id] %>"><%= translation('sidebar._wikis.more') %></a></p>
<% else %>
<p><a href="/wiki/"><%= translation('sidebar._wikis.more') %> »</a></p>
<% end %>
</div>
<% end %>