Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
64 lines (54 sloc) 3.32 KB
<% if current_user && @node.tags.length == 0 %>
<div class="alert alert-warning"><%= raw t('wiki.show.page_has_no_tags', url: 'javascript: $(".tag-input").focus();') %></div>
<% end %>
<% if @node.main_image && !@presentation %>
<a style="margin-bottom:10px;" href="<%= @node.main_image.path(:original) %>">
<img style="max-width:100%;max-height:600px;margin-bottom:10px;" class="rounded" src="<%= @node.main_image.path(:large) %>" />
</a>
<% end %>
<br class="d-lg-none" style="clear:both;" />
<h1 style="font-size:3em;margin-top:20px;text-align:center;font-family:'Junction Light';">
<%= @revision.title %>
<% if @presentation || @node.has_tag('style:minimal') %>
<a onClick="$('#wiki-toolbar').toggle()" class="btn btn-link"><b><i class="fa fa-caret-down"></i></b></a>
<% end %>
</h1>
<% if @is_revision %>
<div class="alert alert-warning">
<%= raw t('wiki.show.revision_from', :time => @revision.created_at.to_s(:long)) %>
<a href="/wiki/revisions/<%= @node.slug_from_path %>">
<%= t('wiki.show.view_all_revisions') %>
</a>
</div>
<% end %>
<div <% if @presentation || @node.has_tag('style:minimal') %>style="display:none" <% end %>id="wiki-toolbar">
<div class="d-print-none">
<div style="padding-top:8px;text-align:center">
<span class="d-none d-lg-inline">
<span rel="tooltip" title="The number of authors for this page." data-placement="top"><i style="color:#888;" class="fa fa-user"></i> <%= number_with_delimiter(@node.authors.length) %></span> |
<a rel="tooltip" title="View all revisions for this page." data-placement="top" href="/wiki/revisions/<%= @node.slug_from_path %>"><i style="color:#888;" class="fa fa-history"></i> <%= @node.revisions.length %></a> |
<a href="/talk/<%= @node.slug_from_path %>" rel="tooltip" title="Practice in a realtime doc." data-placement="top"><i class="fa fa-comment"></i></a> |
<a href="/n/<%= @node.id %>"><i style="color:#888;" class="fa fa-link"></i></a> <span class="d-none d-xl-inline"><a href="/n/<%= @node.id %>">#<%= @node.id %></a></span>
</span>
</div>
</div>
</div>
<br />
<% if params[:raw] == 'true' %>
<div class="alert alert-warning" style="">This is the new (beta) Inline Rich Wikis system. Use the "pencil" buttons after different paragraphs to edit inline, and <a href="/wiki/issues">report problems here</a></div>
<% end %>
<% if @node.has_power_tag('parent') %>
<% parent = Node.find_by(slug: @node.power_tag('parent')) %>
<% if parent %>
<div class="alert alert-success" style="border-color:#eee;background:#f8f8f8;color:#aaa;">&laquo; <%= raw t('wiki.show.back_to_wiki', :url1 => parent.path, :title => parent.latest.title) %></a></div>
<% end %>
<% end %>
<% if @node.has_power_tag('tabbed') %>
<nav class="navbar navbar-light bg-light navbar-expand">
<ul class="navbar-nav">
<li class="nav-item"><a class="nav-link" data-toggle="tab" href="#tab-overview"><%= t('wiki.show.overview') %></a></li>
<% if @node.power_tags('tabbed').include?("notes") %><li class="nav-item"><a class="nav-link active" data-toggle="tab" href="#tab-notes"><%= t('wiki.show.research') %></a></li><% end %>
<% if @node.power_tags('tabbed').include?("wikis") %><li class="nav-item"><a class="nav-link active" data-toggle="tab" href="#tab-wikis"><%= raw t('wiki.show.wiki_pages') %></a></li><% end %>
</ul>
</nav>
<% end %>
You can’t perform that action at this time.