1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-26 02:11:15 +00:00
redmine/app/views/wiki/_sidebar.html.erb
Marius Balteanu ffce07e785 Start working on replacing old icons with SVG icons (#23980):
* Introduces IconsHelper with methods to render SVG icon from a sprite file.
* Adds SVG sprite file with icons mainly from Font Awesome, but also from Material Design Icons and Fluent UI System Icons (based on the work made by Takashi Kato (@tohosaku)).
* Replaces specific icons with new SVG icons.
* Temporarily keep all old CSS icon definitions for backard compatibility.



git-svn-id: https://svn.redmine.org/redmine/trunk@22988 e93f8b46-1217-0410-a6f0-8f06a7374b81
2024-08-29 21:46:40 +00:00

25 lines
915 B
Plaintext

<% if User.current.allowed_to?(:edit_wiki_pages, @project) &&
(@wiki && @wiki.find_or_new_page('Sidebar').editable_by?(User.current)) %>
<div class="contextual">
<%= link_to icon_with_label('edit', l(:button_edit)), edit_project_wiki_page_path(@project, 'sidebar'),
:class => 'icon icon-edit' %>
</div>
<% end -%>
<% if @wiki && @wiki.sidebar -%>
<div class="wiki">
<%= textilizable @wiki.sidebar.content, :text %>
</div>
<% end -%>
<h3><%= l(:label_wiki) %></h3>
<ul>
<li><%= link_to(l(:field_start_page), {:action => 'show', :id => nil}) %></li>
<li><%= link_to(l(:label_index_by_title), {:action => 'index'}) %></li>
<li><%= link_to(l(:label_index_by_date),
{:controller => 'wiki', :project_id => @project,
:action => 'date_index'}) %></li>
</ul>
<%= call_hook(:view_wiki_show_sidebar_bottom, :wiki => @wiki, :page => @page) %>