-
Notifications
You must be signed in to change notification settings - Fork 41
Several improvements of functionality and UI usability #41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 1 commit
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
9ddc057
Preliminary support for month recurrences with modifiers
cryptogopher c99824b
Default values for new recurrences + minor fixes.
cryptogopher e51058e
Adding column for month recurrence modifiers.
cryptogopher bec8599
More informative/less redundant display of recurrence in issue view.
cryptogopher 0ca472a
Status message includes next scheduled recurrence info.
cryptogopher 6774c50
Eliminated 'show' view.
cryptogopher c0f1a84
Removing 'show' view continued...
cryptogopher 2e876c0
Changed UI design/action link placement.
cryptogopher b7e138c
Little tweaks and cleanup.
cryptogopher ef7b8fe
Further visual changes.
cryptogopher 7d2da1b
Changed task generation condition.
cryptogopher c2132a1
Fixed error in /recurring_tasks (when no project is selected).
cryptogopher 9f1ca05
Issue view: empty when no recurrences and header pluralized.
cryptogopher 9ab33ee
Fixed cron configuration example.
cryptogopher 09180d1
Migration: setting default modifier for existing monthly issues.
cryptogopher 41c4aaf
Replaced "yes" with tick mark in recurrence index.
cryptogopher File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Changed UI design/action link placement.
Modified recurrence listing in issue view. Updated look to better match Redmine.
- Loading branch information
commit 2e876c015ff7c1e335a73339ab2d40fe9fe4342f
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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,18 +1,33 @@ | ||
<hr /> | ||
<tr> | ||
<td class="recurrence" colspan="2"></th> | ||
<% if User.current.allowed_to?(:add_issue_recurrence, project) %> | ||
<div class="contextual"><%= link_to(l(:label_add_recurring_task), new_recurring_task_path(:issue_id => issue.id, :project_id => project.id), :class => 'icon icon-add') %></div> | ||
<% end %> | ||
<p><strong><%= l(:field_recurrence)%></strong></p> | ||
<% if issue.recurs? %> | ||
<ul> | ||
<% issue.recurring_tasks.each do |rt| %> | ||
<li><%= if User.current.allowed_to?(:view_issue_recurrence, project) then link_to(rt.recurrence_to_s, edit_recurring_task_path(:id => rt.id, :project_id => project.id)) else rt.recurrence_to_s end %></li> | ||
<% end %> | ||
</ul> | ||
<% else %> | ||
<p><%= l(:label_no_recurrence)%></p> | ||
<% end %> | ||
</td> | ||
</tr> | ||
<div class="recurrence"> | ||
<% if User.current.allowed_to?(:add_issue_recurrence, project) %> | ||
<div class="contextual"><%= link_to(l(:label_add_recurring_task), new_recurring_task_path(:issue_id => issue.id, :project_id => project.id)) %></div> | ||
<% end %> | ||
<p><strong><%= l(:field_recurrence)%></strong></p> | ||
<% if issue.recurs? %> | ||
<table class="list"> | ||
<tbody> | ||
<% issue.recurring_tasks.each do |rt| %> | ||
<tr> | ||
<% if User.current.allowed_to?(:view_issue_recurrence, project) %> | ||
<td class="subject"> | ||
<%= link_to(rt.recurrence_to_s, edit_recurring_task_path(:id => rt.id, :project_id => project.id)) %> | ||
</td> | ||
<td> | ||
<%= "#{l(:label_next_scheduled_run)}: #{rt.next_scheduled_recurrence}" %> | ||
</td> | ||
<td class="buttons"> | ||
<%= link_to(l(:button_edit), edit_recurring_task_path(:id => rt.id, :project_id => project.id), :class => 'icon icon-edit') %> | ||
<%= link_to(l(:button_delete), destroy_recurring_task_path(:id => rt.id, :project_id => project.id), :method => :delete, :class => 'icon icon-del') %></td> | ||
<% else %> | ||
<td colspan=3><%= rt.recurrence_to_s %></td> | ||
<% end %> | ||
</tr> | ||
<% end %> | ||
</tbody> | ||
</table> | ||
<% else %> | ||
<p><%= l(:label_no_recurrence)%></p> | ||
<% end %> | ||
</div> | ||
|
This file contains hidden or 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,16 +1,17 @@ | ||
<div class="box tabular"> | ||
<%= labelled_form_for rt, :url => { :action => next_step, :id=>rt } do |f| %> | ||
<p><%= error_messages_for 'recurring_task' %></p> | ||
<p><%= f.hidden_field :id %></p> | ||
<%= labelled_form_for rt, :url => { :action => next_step, :id=>rt } do |f| %> | ||
<div class="box tabular"> | ||
<%= error_messages_for 'recurring_task' %> | ||
<%= f.hidden_field :id %> | ||
<p><%= label(:recurring_task, :current_issue_id, l(:field_issue)) %><%= collection_select('recurring_task', 'current_issue_id', @recurrable_issues, :id, :subj_date) %></p> | ||
<p><%= f.number_field :interval_number %></p> | ||
<p><%= label(:recurring_task, :interval_unit, l(:field_interval_unit)) %><%= select 'recurring_task', 'interval_unit', @interval_units, {}, :onChange =>"document.getElementById('interval_modifier_block').style.display=(this.value=='"+ RecurringTask::INTERVAL_MONTH + "' ? 'block' : 'none')" %></p> | ||
<% modifier_display = (rt.interval_unit == RecurringTask::INTERVAL_MONTH) ? "display:block" : "display:none" %> | ||
<p><%= f.number_field :interval_number, :size => 4, :maxlength => 4 %></p> | ||
<p><%= f.select :interval_unit, @interval_units, {}, :onChange =>"document.getElementById('interval_modifier_block').style.display=(this.value=='"+ RecurringTask::INTERVAL_MONTH + "' ? 'block' : 'none')" %></p> | ||
<% modifier_display = (rt.interval_unit == RecurringTask::INTERVAL_MONTH) ? "display:inline" : "display:none" %> | ||
<%= content_tag :div, :id => "interval_modifier_block", :style => modifier_display do -%> | ||
<p><%= label(:recurring_task, :interval_modifier, l(:field_interval_modifier)) %><%= select 'recurring_task', 'interval_modifier', rt.get_modifiers_descriptions.collect{|k,v| [v, k]} %></p> | ||
<p><%= f.select 'interval_modifier', rt.get_modifiers_descriptions.collect{|k,v| [v, k]} %></p> | ||
<% end -%> | ||
<p><%= f.check_box :fixed_schedule %> </p> | ||
<p><%= f.submit %></p> | ||
<% end %> | ||
</div> | ||
<p><%= f.check_box :fixed_schedule %></p> | ||
</div> | ||
<%= f.submit %> | ||
<%= link_to l(:button_cancel), :back %> | ||
<% end %> | ||
|
This file contains hidden or 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 hidden or 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 hidden or 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,3 +1,4 @@ | ||
<h2><%= l(:label_add_recurring_task) %></h2> | ||
|
||
<%= render :partial => "form", :locals => { :next_step => 'create', :rt => @recurring_task } %> | ||
<p><%= link_to l(:button_cancel), "#", :onclick => 'Element.hide("add-task")' %></p> | ||
|
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably want to leave at least a note in to allow for cancel, although I see now that it isn't functional.