@@ -1,7 +1,7 | |||||
1 | <% user_projects_by_root = User.current.projects.find(:all, :include => :parent).group_by(&:root) %> |
|
1 | <% user_projects_by_root = User.current.projects.find(:all, :include => :parent).group_by(&:root) %> | |
2 | <select onchange="if (this.value != '') { window.location = this.value; }"> |
|
2 | <select onchange="if (this.value != '') { window.location = this.value; }"> | |
3 | <option selected><%= l(:label_jump_to_a_project) %></option> |
|
3 | <option selected="selected"><%= l(:label_jump_to_a_project) %></option> | |
4 | <option disabled>---</option> |
|
4 | <option disabled="disabled">---</option> | |
5 | <% user_projects_by_root.keys.sort.each do |root| %> |
|
5 | <% user_projects_by_root.keys.sort.each do |root| %> | |
6 | <%= content_tag('option', h(root.name), :value => url_for(:controller => 'projects', :action => 'show', :id => root)) %> |
|
6 | <%= content_tag('option', h(root.name), :value => url_for(:controller => 'projects', :action => 'show', :id => root)) %> | |
7 | <% user_projects_by_root[root].sort.each do |project| %> |
|
7 | <% user_projects_by_root[root].sort.each do |project| %> |
@@ -1,4 +1,4 | |||||
1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1. |
|
1 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
2 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> |
|
2 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> | |
3 | <head> |
|
3 | <head> | |
4 | <title><%=h html_title %></title> |
|
4 | <title><%=h html_title %></title> | |
@@ -73,7 +73,7 | |||||
73 | <div id="ajax-indicator" style="display:none;"><span><%= l(:label_loading) %></span></div> |
|
73 | <div id="ajax-indicator" style="display:none;"><span><%= l(:label_loading) %></span></div> | |
74 |
|
74 | |||
75 | <div id="footer"> |
|
75 | <div id="footer"> | |
76 | Powered by <%= link_to Redmine::Info.app_name, Redmine::Info.url %> <%= Redmine::VERSION %> © 2006-2007 Jean-Philippe Lang |
|
76 | Powered by <%= link_to Redmine::Info.app_name, Redmine::Info.url %> <%= Redmine::VERSION %> © 2006-2007 Jean-Philippe Lang | |
77 | </div> |
|
77 | </div> | |
78 | </body> |
|
78 | </body> | |
79 | </html> |
|
79 | </html> |
@@ -1,6 +1,6 | |||||
1 | <p><%= link_to(h(news.project.name), :controller => 'projects', :action => 'show', :id => news.project) + ': ' unless @project %> |
|
1 | <p><%= link_to(h(news.project.name), :controller => 'projects', :action => 'show', :id => news.project) + ': ' unless @project %> | |
2 | <%= link_to h(news.title), :controller => 'news', :action => 'show', :id => news %> |
|
2 | <%= link_to h(news.title), :controller => 'news', :action => 'show', :id => news %> | |
3 |
<%= "(#{news.comments_count} #{lwr(:label_comment, news.comments_count).downcase})" if news.comments_count > 0 %> |
|
3 | <%= "(#{news.comments_count} #{lwr(:label_comment, news.comments_count).downcase})" if news.comments_count > 0 %> | |
4 | <br /> |
|
4 | <br /> | |
5 | <% unless news.summary.blank? %><span class="summary"><%=h news.summary %></span><br /><% end %> |
|
5 | <% unless news.summary.blank? %><span class="summary"><%=h news.summary %></span><br /><% end %> | |
6 | <span class="author"><%= authoring news.created_on, news.author %></p> |
|
6 | <span class="author"><%= authoring news.created_on, news.author %></span></p> |
@@ -11,9 +11,9 | |||||
11 | <%= select_tag 'type', options_for_select([[l(:label_diff_inline), "inline"], [l(:label_diff_side_by_side), "sbs"]], @diff_type), :onchange => "if (this.value != '') {this.form.submit()}" %></p> |
|
11 | <%= select_tag 'type', options_for_select([[l(:label_diff_inline), "inline"], [l(:label_diff_side_by_side), "sbs"]], @diff_type), :onchange => "if (this.value != '') {this.form.submit()}" %></p> | |
12 | <% end %> |
|
12 | <% end %> | |
13 |
|
13 | |||
14 | <div class="autoscroll"> |
|
|||
15 | <% cache(@cache_key) do %> |
|
14 | <% cache(@cache_key) do %> | |
16 | <% @diff.each do |table_file| %> |
|
15 | <% @diff.each do |table_file| %> | |
|
16 | <div class="autoscroll"> | |||
17 | <% if @diff_type == 'sbs' %> |
|
17 | <% if @diff_type == 'sbs' %> | |
18 | <table class="filecontent CodeRay"> |
|
18 | <table class="filecontent CodeRay"> | |
19 | <thead> |
|
19 | <thead> | |
@@ -84,9 +84,9 | |||||
84 | </tbody> |
|
84 | </tbody> | |
85 | </table> |
|
85 | </table> | |
86 | <% end %> |
|
86 | <% end %> | |
|
87 | </div> | |||
87 | <% end %> |
|
88 | <% end %> | |
88 | <% end %> |
|
89 | <% end %> | |
89 | </div> |
|
|||
90 |
|
90 | |||
91 | <% content_for :header_tags do %> |
|
91 | <% content_for :header_tags do %> | |
92 | <%= stylesheet_link_tag "scm" %> |
|
92 | <%= stylesheet_link_tag "scm" %> |
@@ -24,12 +24,6 | |||||
24 |
|
24 | |||
25 | <%= link_to_attachments @page.attachments, :delete_url => (authorize_for('wiki', 'destroy_attachment') ? {:controller => 'wiki', :action => 'destroy_attachment', :page => @page.title} : nil) %> |
|
25 | <%= link_to_attachments @page.attachments, :delete_url => (authorize_for('wiki', 'destroy_attachment') ? {:controller => 'wiki', :action => 'destroy_attachment', :page => @page.title} : nil) %> | |
26 |
|
26 | |||
27 | <div class="contextual"> |
|
|||
28 | <%= l(:label_export_to) %> |
|
|||
29 | <%= link_to 'HTML', {:page => @page.title, :export => 'html', :version => @content.version}, :class => 'icon icon-html' %>, |
|
|||
30 | <%= link_to 'TXT', {:page => @page.title, :export => 'txt', :version => @content.version}, :class => 'icon icon-txt' %> |
|
|||
31 | </div> |
|
|||
32 |
|
||||
33 | <% if authorize_for('wiki', 'add_attachment') %> |
|
27 | <% if authorize_for('wiki', 'add_attachment') %> | |
34 | <p><%= toggle_link l(:label_attachment_new), "add_attachment_form" %></p> |
|
28 | <p><%= toggle_link l(:label_attachment_new), "add_attachment_form" %></p> | |
35 | <% form_tag({ :controller => 'wiki', :action => 'add_attachment', :page => @page.title }, :multipart => true, :class => "tabular", :id => "add_attachment_form", :style => "display:none;") do %> |
|
29 | <% form_tag({ :controller => 'wiki', :action => 'add_attachment', :page => @page.title }, :multipart => true, :class => "tabular", :id => "add_attachment_form", :style => "display:none;") do %> | |
@@ -38,6 +32,13 | |||||
38 | <% end %> |
|
32 | <% end %> | |
39 | <% end %> |
|
33 | <% end %> | |
40 |
|
34 | |||
|
35 | <div class="contextual"> | |||
|
36 | <%= l(:label_export_to) %> | |||
|
37 | <%= link_to 'HTML', {:page => @page.title, :export => 'html', :version => @content.version}, :class => 'icon icon-html' %>, | |||
|
38 | <%= link_to 'TXT', {:page => @page.title, :export => 'txt', :version => @content.version}, :class => 'icon icon-txt' %> | |||
|
39 | </div> | |||
|
40 | | |||
|
41 | ||||
41 | <% content_for :header_tags do %> |
|
42 | <% content_for :header_tags do %> | |
42 | <%= stylesheet_link_tag 'scm' %> |
|
43 | <%= stylesheet_link_tag 'scm' %> | |
43 | <% end %> |
|
44 | <% end %> |
@@ -112,7 +112,7 module Redmine | |||||
112 | :author => changeset[:user], |
|
112 | :author => changeset[:user], | |
113 | :time => Time.parse(changeset[:date]), |
|
113 | :time => Time.parse(changeset[:date]), | |
114 | :message => changeset[:description], |
|
114 | :message => changeset[:description], | |
115 | :paths => changeset[:files].split.collect{|path| {:action => 'X', :path => "/#{path}"}} |
|
115 | :paths => changeset[:files].to_s.split.collect{|path| {:action => 'X', :path => "/#{path}"}} | |
116 | }) |
|
116 | }) | |
117 | end |
|
117 | end | |
118 | return nil if $? && $?.exitstatus != 0 |
|
118 | return nil if $? && $?.exitstatus != 0 |
@@ -69,4 +69,8 module ApplicationHelper | |||||
69 | super((@current_theme && @current_theme.stylesheets.include?(source)) ? |
|
69 | super((@current_theme && @current_theme.stylesheets.include?(source)) ? | |
70 | "/themes/#{@current_theme.dir}/stylesheets/#{source}" : source) |
|
70 | "/themes/#{@current_theme.dir}/stylesheets/#{source}" : source) | |
71 | end |
|
71 | end | |
|
72 | ||||
|
73 | def path_to_stylesheet(source) | |||
|
74 | stylesheet_path source | |||
|
75 | end | |||
72 | end |
|
76 | end |
@@ -39,6 +39,9 ContextMenu.prototype = { | |||||
39 | this.selection = tr; |
|
39 | this.selection = tr; | |
40 | var id = tr.id.substring(6, tr.id.length); |
|
40 | var id = tr.id.substring(6, tr.id.length); | |
41 | /* TODO: do not hard code path */ |
|
41 | /* TODO: do not hard code path */ | |
42 |
new Ajax.Updater({success:'context-menu'}, '../../issues/context_menu/' + id, {asynchronous:true, evalScripts:true, onComplete:function(request){ |
|
42 | new Ajax.Updater({success:'context-menu'}, '../../issues/context_menu/' + id, {asynchronous:true, evalScripts:true, onComplete:function(request){ | |
|
43 | Effect.Appear('context-menu', {duration: 0.20}); | |||
|
44 | if (window.parseStylesheets) { window.parseStylesheets(); } | |||
|
45 | }}) | |||
43 | } |
|
46 | } | |
44 | } |
|
47 | } |
@@ -123,7 +123,7 hr { width: 100%; height: 1px; background: #ccc; border: 0;} | |||||
123 | textarea.wiki-edit { width: 99%; } |
|
123 | textarea.wiki-edit { width: 99%; } | |
124 | li p {margin-top: 0;} |
|
124 | li p {margin-top: 0;} | |
125 | div.issue {background:#ffffdd; padding:6px; margin-bottom:6px;border: 1px solid #d7d7d7;} |
|
125 | div.issue {background:#ffffdd; padding:6px; margin-bottom:6px;border: 1px solid #d7d7d7;} | |
126 | .autoscroll {overflow-x: auto; padding:1px; width:100%;} |
|
126 | .autoscroll {overflow-x: auto; padding:1px; width:100%; margin-bottom: 1.2em;} | |
127 | #user_firstname, #user_lastname, #user_mail, #my_account_form select { width: 90%; } |
|
127 | #user_firstname, #user_lastname, #user_mail, #my_account_form select { width: 90%; } | |
128 |
|
128 | |||
129 | /***** Tabular forms ******/ |
|
129 | /***** Tabular forms ******/ |
@@ -24,7 +24,7 | |||||
24 | } |
|
24 | } | |
25 | #context-menu li.folder ul { |
|
25 | #context-menu li.folder ul { | |
26 | position:absolute; |
|
26 | position:absolute; | |
27 |
left:1 |
|
27 | left:168px; /* IE6 */ | |
28 | top:-2px; |
|
28 | top:-2px; | |
29 | } |
|
29 | } | |
30 | #context-menu li.folder>ul { left:148px; } |
|
30 | #context-menu li.folder>ul { left:148px; } |
@@ -117,4 +117,6 function getElementsBySelect(rule) { | |||||
117 |
|
117 | |||
118 | return nodes; |
|
118 | return nodes; | |
119 | } |
|
119 | } | |
|
120 | ||||
|
121 | window.parseStylesheets = parseStylesheets; | |||
120 | </script> No newline at end of file |
|
122 | </script> |
@@ -35,6 +35,7 class RepositoriesMercurialControllerTest < Test::Unit::TestCase | |||||
35 | Repository::Mercurial.create(:project => Project.find(3), :url => REPOSITORY_PATH) |
|
35 | Repository::Mercurial.create(:project => Project.find(3), :url => REPOSITORY_PATH) | |
36 | end |
|
36 | end | |
37 |
|
37 | |||
|
38 | if File.directory?(REPOSITORY_PATH) | |||
38 | def test_show |
|
39 | def test_show | |
39 | get :show, :id => 3 |
|
40 | get :show, :id => 3 | |
40 | assert_response :success |
|
41 | assert_response :success | |
@@ -114,4 +115,8 class RepositoriesMercurialControllerTest < Test::Unit::TestCase | |||||
114 | :sibling => { :tag => 'td', :content => /jsmith/ }, |
|
115 | :sibling => { :tag => 'td', :content => /jsmith/ }, | |
115 | :sibling => { :tag => 'td', :content => /watcher =/ } |
|
116 | :sibling => { :tag => 'td', :content => /watcher =/ } | |
116 | end |
|
117 | end | |
|
118 | else | |||
|
119 | puts "Mercurial test repository NOT FOUND. Skipping functional tests !!!" | |||
|
120 | def test_fake; assert true end | |||
|
121 | end | |||
117 | end |
|
122 | end |
General Comments 0
You need to be logged in to leave comments.
Login now