-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ca9a39f
commit d3abe82
Showing
9 changed files
with
79 additions
and
129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
<div> | ||
<h3><%= l(:time_logger_settings_general_title) %></h3> | ||
<hr /> | ||
<div class="box tabular"> | ||
<p> | ||
<%= label_tag 'settings[refresh_rate]', l(:time_logger_refresh_rate) %> | ||
<%= text_field_tag 'settings[refresh_rate]', @settings['refresh_rate'], { :size => 4 } %> | ||
(<%= l(:time_logger_seconds) %>) | ||
</p> | ||
</div> | ||
</div> <%# Hack to close the div opened by redmine before rendering this view. This is to avoid the big box wrapping all the settings content. %> | ||
|
||
<h3><%= l(:time_logger_settings_general_title) %></h3> | ||
|
||
<h3><%= l(:time_logger_settings_transition_title) %></h3> | ||
<hr /> | ||
<div> | ||
<%= l(:time_logger_settings_transition_msg) %> | ||
<br /><br /><b><%= l(:time_logger_settings_transition_note) %></b> | ||
<br /><br /> | ||
<%= render :partial => 'time_loggers/status_transition_list', :locals => { :transitions => @settings['status_transitions'] } %> | ||
</div> | ||
<div class="box tabular"> | ||
<p> | ||
<%= label_tag 'settings[refresh_rate]', l(:time_logger_refresh_rate) %> | ||
<%= text_field_tag 'settings[refresh_rate]', @settings['refresh_rate'], { :size => 4 } %> | ||
(<%= l(:time_logger_seconds) %>) | ||
</p> | ||
</div> | ||
|
||
<h3><%= l(:time_logger_settings_transition_title) %></h3> | ||
|
||
<div> | ||
<p><%= l(:time_logger_settings_transition_msg) %></p> | ||
<p><%= l(:time_logger_settings_transition_note) %></p> | ||
|
||
<%= render :partial => 'time_loggers/status_transition_list', :locals => { :transitions => @settings['status_transitions'] } %> | ||
|
||
<%# The div is not close as redmine will close the one opened before rendering this view. As we close this div at the begining of the view, we need an open one before returning. %> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
if Rails::VERSION::MAJOR >= 4 | ||
Rails.application.routes.draw do | ||
match 'time_loggers/stop', :to => "time_loggers#stop", via: [:get, :post] | ||
match 'time_loggers/start', :to => "time_loggers#start", via: [:get, :post] | ||
match 'time_loggers/suspend', :to => "time_loggers#suspend", via: [:get, :post] | ||
match 'time_loggers/resume', :to => "time_loggers#resume", via: [:get, :post] | ||
match 'time_loggers/render_menu', :to => "time_loggers#render_menu", via: [:get, :post] | ||
match 'time_loggers/add_status_transition', :to => "time_loggers#add_status_transition", via: [:get, :post] | ||
match 'time_loggers/delete_status_transition', :to => "time_loggers#delete_status_transition", via: [:get, :post] | ||
match 'time_loggers/show_report', :to => "time_loggers#show_report", via: [:get, :post] | ||
match 'time_loggers/delete', :to => "time_loggers#delete", via: [:get, :post] | ||
match 'time_loggers', :to => "time_loggers#index", via: [:get, :post] | ||
match 'time_loggers/stop', :to => 'time_loggers#stop', via: [:get, :post] | ||
match 'time_loggers/start', :to => 'time_loggers#start', via: [:get, :post] | ||
match 'time_loggers/suspend', :to => 'time_loggers#suspend', via: [:get, :post] | ||
match 'time_loggers/resume', :to => 'time_loggers#resume', via: [:get, :post] | ||
match 'time_loggers/render_menu', :to => 'time_loggers#render_menu', via: [:get, :post] | ||
match 'time_loggers/add_status_transition', :to => 'time_loggers#add_status_transition', via: [:get, :post] | ||
match 'time_loggers/delete_status_transition', :to => 'time_loggers#delete_status_transition', via: [:get, :post] | ||
match 'time_loggers/show_report', :to => 'time_loggers#show_report', via: [:get, :post] | ||
match 'time_loggers/delete', :to => 'time_loggers#delete', via: [:get, :post] | ||
match 'time_loggers', :to => 'time_loggers#index', via: [:get, :post] | ||
end | ||
elsif Rails::VERSION::MAJOR = 3 | ||
elsif Rails::VERSION::MAJOR >= 3 | ||
Rails.application.routes.draw do | ||
match 'time_loggers/stop' , :to => "time_loggers#stop" | ||
match 'time_loggers/start' , :to => "time_loggers#start" | ||
match 'time_loggers/suspend', :to => "time_loggers#suspend" | ||
match 'time_loggers/resume' , :to => "time_loggers#resume" | ||
match 'time_loggers/render_menu', :to => "time_loggers#render_menu" | ||
match 'time_loggers/add_status_transition', :to => "time_loggers#add_status_transition" | ||
match 'time_loggers/delete_status_transition', :to => "time_loggers#delete_status_transition" | ||
match 'time_loggers/show_report', :to => "time_loggers#show_report" | ||
match 'time_loggers/delete', :to => "time_loggers#delete" | ||
match 'time_loggers' , :to => "time_loggers#index" | ||
match 'time_loggers/stop' , :to => 'time_loggers#stop' | ||
match 'time_loggers/start' , :to => 'time_loggers#start' | ||
match 'time_loggers/suspend', :to => 'time_loggers#suspend' | ||
match 'time_loggers/resume' , :to => 'time_loggers#resume' | ||
match 'time_loggers/render_menu', :to => 'time_loggers#render_menu' | ||
match 'time_loggers/add_status_transition', :to => 'time_loggers#add_status_transition' | ||
match 'time_loggers/delete_status_transition', :to => 'time_loggers#delete_status_transition' | ||
match 'time_loggers/show_report', :to => 'time_loggers#show_report' | ||
match 'time_loggers/delete', :to => 'time_loggers#delete' | ||
match 'time_loggers' , :to => 'time_loggers#index' | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters