Revision 1297:0a574315af3e .svn/pristine/cd
| .svn/pristine/cd/cd08316525f41ab12ddac1b7021cfbcc0f617e7e.svn-base | ||
|---|---|---|
| 1 |
<%= wiki_page_breadcrumb(@page) %> |
|
| 2 |
|
|
| 3 |
<h2><%= h(@page.pretty_title) %></h2> |
|
| 4 |
|
|
| 5 |
<h3><%= l(:label_history) %></h3> |
|
| 6 |
|
|
| 7 |
<%= form_tag({:controller => 'wiki', :action => 'diff',
|
|
| 8 |
:project_id => @page.project, :id => @page.title}, |
|
| 9 |
:method => :get) do %> |
|
| 10 |
<table class="list wiki-page-versions"> |
|
| 11 |
<thead><tr> |
|
| 12 |
<th>#</th> |
|
| 13 |
<th></th> |
|
| 14 |
<th></th> |
|
| 15 |
<th><%= l(:field_updated_on) %></th> |
|
| 16 |
<th><%= l(:field_author) %></th> |
|
| 17 |
<th><%= l(:field_comments) %></th> |
|
| 18 |
<th></th> |
|
| 19 |
</tr></thead> |
|
| 20 |
<tbody> |
|
| 21 |
<% show_diff = @versions.size > 1 %> |
|
| 22 |
<% line_num = 1 %> |
|
| 23 |
<% @versions.each do |ver| %> |
|
| 24 |
<tr class="wiki-page-version <%= cycle("odd", "even") %>">
|
|
| 25 |
<td class="id"><%= link_to h(ver.version), :action => 'show', :id => @page.title, :project_id => @page.project, :version => ver.version %></td> |
|
| 26 |
<td class="checkbox"><%= radio_button_tag('version', ver.version, (line_num==1), :id => "cb-#{line_num}", :onclick => "$('#cbto-#{line_num+1}').attr('checked', true);") if show_diff && (line_num < @versions.size) %></td>
|
|
| 27 |
<td class="checkbox"><%= radio_button_tag('version_from', ver.version, (line_num==2), :id => "cbto-#{line_num}") if show_diff && (line_num > 1) %></td>
|
|
| 28 |
<td class="updated_on"><%= format_time(ver.updated_on) %></td> |
|
| 29 |
<td class="author"><%= link_to_user ver.author %></td> |
|
| 30 |
<td class="comments"><%=h ver.comments %></td> |
|
| 31 |
<td class="buttons"> |
|
| 32 |
<%= link_to l(:button_annotate), :action => 'annotate', :id => @page.title, :version => ver.version %> |
|
| 33 |
<%= delete_link wiki_page_path(@page, :version => ver.version) if User.current.allowed_to?(:delete_wiki_pages, @page.project) && @version_count > 1 %> |
|
| 34 |
</td> |
|
| 35 |
</tr> |
|
| 36 |
<% line_num += 1 %> |
|
| 37 |
<% end %> |
|
| 38 |
</tbody> |
|
| 39 |
</table> |
|
| 40 |
<%= submit_tag l(:label_view_diff), :class => 'small' if show_diff %> |
|
| 41 |
<span class="pagination"><%= pagination_links_full @version_pages, @version_count %></span> |
|
| 42 |
<% end %> |
|
| .svn/pristine/cd/cd3d594ac426506e373d0e5b944a6cc7b681c8b8.svn-base | ||
|---|---|---|
| 1 |
# encoding: utf-8 |
|
| 2 |
# |
|
| 3 |
# Redmine - project management software |
|
| 4 |
# Copyright (C) 2006-2012 Jean-Philippe Lang |
|
| 5 |
# |
|
| 6 |
# This program is free software; you can redistribute it and/or |
|
| 7 |
# modify it under the terms of the GNU General Public License |
|
| 8 |
# as published by the Free Software Foundation; either version 2 |
|
| 9 |
# of the License, or (at your option) any later version. |
|
| 10 |
# |
|
| 11 |
# This program is distributed in the hope that it will be useful, |
|
| 12 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
| 13 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
| 14 |
# GNU General Public License for more details. |
|
| 15 |
# |
|
| 16 |
# You should have received a copy of the GNU General Public License |
|
| 17 |
# along with this program; if not, write to the Free Software |
|
| 18 |
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
| 19 |
|
|
| 20 |
module AdminHelper |
|
| 21 |
def project_status_options_for_select(selected) |
|
| 22 |
options_for_select([[l(:label_all), ''], |
|
| 23 |
[l(:project_status_active), '1'], |
|
| 24 |
[l(:project_status_closed), '5'], |
|
| 25 |
[l(:project_status_archived), '9']], selected.to_s) |
|
| 26 |
end |
|
| 27 |
end |
|
| .svn/pristine/cd/cd4415d52645a60e8617c80de413b05cf594c025.svn-base | ||
|---|---|---|
| 1 |
/* Slovak initialisation for the jQuery UI date picker plugin. */ |
|
| 2 |
/* Written by Vojtech Rinik (vojto@hmm.sk). */ |
|
| 3 |
jQuery(function($){
|
|
| 4 |
$.datepicker.regional['sk'] = {
|
|
| 5 |
closeText: 'Zavrieť', |
|
| 6 |
prevText: '<Predchádzajúci', |
|
| 7 |
nextText: 'Nasledujúci>', |
|
| 8 |
currentText: 'Dnes', |
|
| 9 |
monthNames: ['Január','Február','Marec','Apríl','Máj','Jún', |
|
| 10 |
'Júl','August','September','Október','November','December'], |
|
| 11 |
monthNamesShort: ['Jan','Feb','Mar','Apr','Máj','Jún', |
|
| 12 |
'Júl','Aug','Sep','Okt','Nov','Dec'], |
|
| 13 |
dayNames: ['Nedeľa','Pondelok','Utorok','Streda','Štvrtok','Piatok','Sobota'], |
|
| 14 |
dayNamesShort: ['Ned','Pon','Uto','Str','Štv','Pia','Sob'], |
|
| 15 |
dayNamesMin: ['Ne','Po','Ut','St','Št','Pia','So'], |
|
| 16 |
weekHeader: 'Ty', |
|
| 17 |
dateFormat: 'dd.mm.yy', |
|
| 18 |
firstDay: 1, |
|
| 19 |
isRTL: false, |
|
| 20 |
showMonthAfterYear: false, |
|
| 21 |
yearSuffix: ''}; |
|
| 22 |
$.datepicker.setDefaults($.datepicker.regional['sk']); |
|
| 23 |
}); |
|
| .svn/pristine/cd/cd616cb8a21cd26998b00199d18b19fd0b8aadef.svn-base | ||
|---|---|---|
| 1 |
<div class="contextual"> |
|
| 2 |
<% if User.current.allowed_to?(:manage_documents, @project) %> |
|
| 3 |
<%= link_to l(:button_edit), edit_document_path(@document), :class => 'icon icon-edit', :accesskey => accesskey(:edit) %> |
|
| 4 |
<%= delete_link document_path(@document) %> |
|
| 5 |
<% end %> |
|
| 6 |
</div> |
|
| 7 |
|
|
| 8 |
<h2><%=h @document.title %></h2> |
|
| 9 |
|
|
| 10 |
<p><em><%=h @document.category.name %><br /> |
|
| 11 |
<%= format_date @document.created_on %></em></p> |
|
| 12 |
<div class="wiki"> |
|
| 13 |
<%= textilizable @document.description, :attachments => @document.attachments %> |
|
| 14 |
</div> |
|
| 15 |
|
|
| 16 |
<h3><%= l(:label_attachment_plural) %></h3> |
|
| 17 |
<%= link_to_attachments @document %> |
|
| 18 |
|
|
| 19 |
<% if authorize_for('documents', 'add_attachment') %>
|
|
| 20 |
<p><%= link_to l(:label_attachment_new), {}, :onclick => "$('#add_attachment_form').show(); return false;",
|
|
| 21 |
:id => 'attach_files_link' %></p> |
|
| 22 |
<%= form_tag({ :controller => 'documents', :action => 'add_attachment', :id => @document }, :multipart => true, :id => "add_attachment_form", :style => "display:none;") do %>
|
|
| 23 |
<div class="box"> |
|
| 24 |
<p><%= render :partial => 'attachments/form' %></p> |
|
| 25 |
</div> |
|
| 26 |
<%= submit_tag l(:button_add) %> |
|
| 27 |
<% end %> |
|
| 28 |
<% end %> |
|
| 29 |
|
|
| 30 |
<% html_title @document.title -%> |
|
| .svn/pristine/cd/cd6291f004c3ed369197e657bfbdca19841b1ad5.svn-base | ||
|---|---|---|
| 1 |
<h2><%=l(:label_document)%></h2> |
|
| 2 |
|
|
| 3 |
<%= labelled_form_for @document do |f| %> |
|
| 4 |
<%= render :partial => 'form', :locals => {:f => f} %>
|
|
| 5 |
<p><%= submit_tag l(:button_save) %></p> |
|
| 6 |
<% end %> |
|
| 7 |
|
|
| 8 |
|
|
Also available in: Unified diff