Unverified Commit e7ade32f authored by Bastian Bringenberg's avatar Bastian Bringenberg
Browse files

Remove unused templates for Gitlab 4.1 and 4.2

parent 65ee325c
<%= form_for @content, :url => {:action => 'update', :id => @page.title}, :html => {:method => :put, :multipart => true, :id => 'wiki_form'}, as: :content do |f| %>
<%= f.hidden_field :version %>
<%= error_messages_for 'content' %>
<p><%= f.text_area :text, :cols => 100, :rows => 25, :class => 'wiki-edit', :accesskey => accesskey(:edit) %></p>
<p><label for="content_comments"><%= l(:field_comments) %></label><br /><%= f.text_field :comments, :size => 120 %></p>
<p><label><%=l(:label_attachment_plural)%></label><br /><%= render :partial => 'attachments/form' %></p>
<p><%= submit_tag l(:button_save) %>
<%= link_to l(:label_preview),
{ :url => { :controller => 'wiki', :action => 'preview', :project_id => @project, :id => @page.title , remote: true},
:method => :post,
:update => 'preview',
:with => "Form.serialize('wiki_form')",
:complete => "Element.scrollTo('preview')"
}, :accesskey => accesskey(:preview) %></p>
<%= wikitoolbar_for 'content_text' %>
<% end %>
<div id="preview" class="wiki"></div>
<%- if User.current.allowed_to?(:edit_wiki_styles, @project) %>
<%- if tab[:style].page && @page.new_record? %>
<p class="warning"><%=l(:text_need_to_save_wiki_page).html_safe %></p>
<% else %>
<%= form_for :style, :url => {:controller => 'wiki_styles', :action => 'update', :project_id => @project, :id => tab[:global] ? nil: @page.title}, :html => {:method => :put} do |f| %>
<p><%= f.text_area :text, :cols => 100, :rows => 25, :class => 'wiki-edit', :accesskey => accesskey(:edit) %></p>
<p>
<%= submit_tag l(:button_save) %>
<%= submit_tag l(:button_save_and_continue), :name => 'continue' %>
</p>
<% end # form %>
<%- end %>
<%- else -%>
<%- unless tab[:style].text -%>
<p class="nodata"><%= l(:label_no_data) %></p>
<% else %>
<div class="wiki">
<%= textilizable("<pre><code class=\"css\">#{tab[:style].text}</code></pre>")%>
</div>
<%- end -%>
<%- end -%>
<h2><%=h @page.pretty_title %></h2>
<%= render_tabs wiki_edit_tabs %>
<% content_for :header_tags do %>
<%= stylesheet_link_tag 'scm' %>
<% end %>
<% html_title @page.pretty_title %>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment