Revision 441:cbce1fd3b1b7 app/views/gantts
| app/views/gantts/.svn/all-wcprops | ||
|---|---|---|
| 1 |
K 25 |
|
| 2 |
svn:wc:ra_dav:version-url |
|
| 3 |
V 41 |
|
| 4 |
/svn/!svn/ver/4913/trunk/app/views/gantts |
|
| 5 |
END |
|
| 6 |
show.html.erb |
|
| 7 |
K 25 |
|
| 8 |
svn:wc:ra_dav:version-url |
|
| 9 |
V 55 |
|
| 10 |
/svn/!svn/ver/4913/trunk/app/views/gantts/show.html.erb |
|
| 11 |
END |
|
| app/views/gantts/.svn/entries | ||
|---|---|---|
| 1 | 1 |
10 |
| 2 | 2 |
|
| 3 | 3 |
dir |
| 4 |
4993
|
|
| 5 |
http://redmine.rubyforge.org/svn/trunk/app/views/gantts
|
|
| 4 |
6000
|
|
| 5 |
http://redmine.rubyforge.org/svn/branches/1.2-stable/app/views/gantts
|
|
| 6 | 6 |
http://redmine.rubyforge.org/svn |
| 7 | 7 |
|
| 8 | 8 |
|
| 9 | 9 |
|
| 10 |
2011-02-21T15:06:11.321114Z
|
|
| 11 |
4913
|
|
| 10 |
2011-04-03T14:01:32.419875Z
|
|
| 11 |
5301
|
|
| 12 | 12 |
jplang |
| 13 | 13 |
|
| 14 | 14 |
|
| ... | ... | |
| 32 | 32 |
|
| 33 | 33 |
|
| 34 | 34 |
|
| 35 |
2011-03-03T11:40:18.000000Z
|
|
| 36 |
6f609d119b323e4fd1a249dfbd614e38
|
|
| 37 |
2011-02-21T15:06:11.321114Z
|
|
| 38 |
4913
|
|
| 35 |
2011-06-06T13:18:33.000000Z
|
|
| 36 |
cd7362f337d3c416c33f6033220b22d5
|
|
| 37 |
2011-04-03T14:01:32.419875Z
|
|
| 38 |
5301
|
|
| 39 | 39 |
jplang |
| 40 | 40 |
has-props |
| 41 | 41 |
|
| ... | ... | |
| 58 | 58 |
|
| 59 | 59 |
|
| 60 | 60 |
|
| 61 |
6326
|
|
| 61 |
5863
|
|
| 62 | 62 |
|
| app/views/gantts/.svn/text-base/show.html.erb.svn-base | ||
|---|---|---|
| 1 | 1 |
<% @gantt.view = self %> |
| 2 | 2 |
<h2><%= @query.new_record? ? l(:label_gantt) : h(@query.name) %></h2> |
| 3 | 3 |
|
| 4 |
<% form_tag(gantt_path(:month => params[:month], :year => params[:year], :months => params[:months]), :method => :put, :id => 'query_form') do %>
|
|
| 5 |
<%= hidden_field_tag('project_id', @project.to_param) if @project%>
|
|
| 4 |
<% form_tag({:controller => 'gantts', :action => 'show', :project_id => @project, :month => params[:month], :year => params[:year], :months => params[:months]}, :method => :get, :id => 'query_form') do %>
|
|
| 5 |
<%= hidden_field_tag 'set_filter', '1' %>
|
|
| 6 | 6 |
<fieldset id="filters" class="collapsible <%= @query.new_record? ? "" : "collapsed" %>"> |
| 7 | 7 |
<legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend> |
| 8 | 8 |
<div style="<%= @query.new_record? ? "" : "display: none;" %>"> |
| ... | ... | |
| 22 | 22 |
<%= select_year(@gantt.year_from, :prefix => "year", :discard_type => true) %> |
| 23 | 23 |
<%= hidden_field_tag 'zoom', @gantt.zoom %> |
| 24 | 24 |
|
| 25 |
<%= link_to_remote l(:button_apply), |
|
| 26 |
{ :url => { :set_filter => 1 },
|
|
| 27 |
:update => "content", |
|
| 28 |
:with => "Form.serialize('query_form')"
|
|
| 29 |
}, :class => 'icon icon-checked' %> |
|
| 30 |
|
|
| 31 |
<%= link_to_remote l(:button_clear), |
|
| 32 |
{ :url => { :project_id => @project, :set_filter => 1 },
|
|
| 33 |
:method => :put, |
|
| 34 |
:update => "content", |
|
| 35 |
}, :class => 'icon icon-reload' %> |
|
| 25 |
<%= link_to_function l(:button_apply), '$("query_form").submit()', :class => 'icon icon-checked' %>
|
|
| 26 |
<%= link_to l(:button_clear), { :project_id => @project, :set_filter => 1 }, :class => 'icon icon-reload' %>
|
|
| 36 | 27 |
</p> |
| 37 | 28 |
<% end %> |
| 38 | 29 |
|
| ... | ... | |
| 178 | 169 |
|
| 179 | 170 |
<table width="100%"> |
| 180 | 171 |
<tr> |
| 181 |
<td align="left"><%= link_to_remote ('« ' + l(:label_previous)), {:url => @gantt.params_previous, :method => :get, :update => 'content', :complete => 'window.scrollTo(0,0)'}, {:href => url_for(@gantt.params_previous)} %></td>
|
|
| 182 |
<td align="right"><%= link_to_remote (l(:label_next) + ' »'), {:url => @gantt.params_next, :method => :get, :update => 'content', :complete => 'window.scrollTo(0,0)'}, {:href => url_for(@gantt.params_next)} %></td>
|
|
| 172 |
<td align="left"><%= link_to_content_update('« ' + l(:label_previous), params.merge(@gantt.params_previous)) %></td>
|
|
| 173 |
<td align="right"><%= link_to_content_update(l(:label_next) + ' »', params.merge(@gantt.params_next)) %></td>
|
|
| 183 | 174 |
</tr> |
| 184 | 175 |
</table> |
| 185 | 176 |
|
| 186 | 177 |
<% other_formats_links do |f| %> |
| 187 |
<%= f.link_to 'PDF', :url => @gantt.params %>
|
|
| 188 |
<%= f.link_to('PNG', :url => @gantt.params) if @gantt.respond_to?('to_image') %>
|
|
| 178 |
<%= f.link_to 'PDF', :url => params.merge(@gantt.params) %>
|
|
| 179 |
<%= f.link_to('PNG', :url => params.merge(@gantt.params)) if @gantt.respond_to?('to_image') %>
|
|
| 189 | 180 |
<% end %> |
| 190 | 181 |
<% end # query.valid? %> |
| 191 | 182 |
|
| app/views/gantts/show.html.erb | ||
|---|---|---|
| 1 | 1 |
<% @gantt.view = self %> |
| 2 | 2 |
<h2><%= @query.new_record? ? l(:label_gantt) : h(@query.name) %></h2> |
| 3 | 3 |
|
| 4 |
<% form_tag(gantt_path(:month => params[:month], :year => params[:year], :months => params[:months]), :method => :put, :id => 'query_form') do %>
|
|
| 5 |
<%= hidden_field_tag('project_id', @project.to_param) if @project%>
|
|
| 4 |
<% form_tag({:controller => 'gantts', :action => 'show', :project_id => @project, :month => params[:month], :year => params[:year], :months => params[:months]}, :method => :get, :id => 'query_form') do %>
|
|
| 5 |
<%= hidden_field_tag 'set_filter', '1' %>
|
|
| 6 | 6 |
<fieldset id="filters" class="collapsible <%= @query.new_record? ? "" : "collapsed" %>"> |
| 7 | 7 |
<legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend> |
| 8 | 8 |
<div style="<%= @query.new_record? ? "" : "display: none;" %>"> |
| ... | ... | |
| 22 | 22 |
<%= select_year(@gantt.year_from, :prefix => "year", :discard_type => true) %> |
| 23 | 23 |
<%= hidden_field_tag 'zoom', @gantt.zoom %> |
| 24 | 24 |
|
| 25 |
<%= link_to_remote l(:button_apply), |
|
| 26 |
{ :url => { :set_filter => 1 },
|
|
| 27 |
:update => "content", |
|
| 28 |
:with => "Form.serialize('query_form')"
|
|
| 29 |
}, :class => 'icon icon-checked' %> |
|
| 30 |
|
|
| 31 |
<%= link_to_remote l(:button_clear), |
|
| 32 |
{ :url => { :project_id => @project, :set_filter => 1 },
|
|
| 33 |
:method => :put, |
|
| 34 |
:update => "content", |
|
| 35 |
}, :class => 'icon icon-reload' %> |
|
| 25 |
<%= link_to_function l(:button_apply), '$("query_form").submit()', :class => 'icon icon-checked' %>
|
|
| 26 |
<%= link_to l(:button_clear), { :project_id => @project, :set_filter => 1 }, :class => 'icon icon-reload' %>
|
|
| 36 | 27 |
</p> |
| 37 | 28 |
<% end %> |
| 38 | 29 |
|
| ... | ... | |
| 178 | 169 |
|
| 179 | 170 |
<table width="100%"> |
| 180 | 171 |
<tr> |
| 181 |
<td align="left"><%= link_to_remote ('« ' + l(:label_previous)), {:url => @gantt.params_previous, :method => :get, :update => 'content', :complete => 'window.scrollTo(0,0)'}, {:href => url_for(@gantt.params_previous)} %></td>
|
|
| 182 |
<td align="right"><%= link_to_remote (l(:label_next) + ' »'), {:url => @gantt.params_next, :method => :get, :update => 'content', :complete => 'window.scrollTo(0,0)'}, {:href => url_for(@gantt.params_next)} %></td>
|
|
| 172 |
<td align="left"><%= link_to_content_update('« ' + l(:label_previous), params.merge(@gantt.params_previous)) %></td>
|
|
| 173 |
<td align="right"><%= link_to_content_update(l(:label_next) + ' »', params.merge(@gantt.params_next)) %></td>
|
|
| 183 | 174 |
</tr> |
| 184 | 175 |
</table> |
| 185 | 176 |
|
| 186 | 177 |
<% other_formats_links do |f| %> |
| 187 |
<%= f.link_to 'PDF', :url => @gantt.params %>
|
|
| 188 |
<%= f.link_to('PNG', :url => @gantt.params) if @gantt.respond_to?('to_image') %>
|
|
| 178 |
<%= f.link_to 'PDF', :url => params.merge(@gantt.params) %>
|
|
| 179 |
<%= f.link_to('PNG', :url => params.merge(@gantt.params)) if @gantt.respond_to?('to_image') %>
|
|
| 189 | 180 |
<% end %> |
| 190 | 181 |
<% end # query.valid? %> |
| 191 | 182 |
|
Also available in: Unified diff