Skip to content
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

#31383 User can edit task priority on taskboard even when it is not v… #1133

Open
wants to merge 1 commit into
base: feature/redmine3
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 5 additions & 6 deletions app/views/rb_tasks/_task.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@
<div class="t"><%= assignee_name_or_empty(task) %></div>
<div class="v"><%= assignee_id_or_empty(task) %></div>
</div>
<% if Backlogs.settings[:show_priority] || task.priority_id != IssuePriority.default.id %>
<div class="priority_id editable" fieldtype="select" fieldname="priority_id" fieldlabel="<%=l(:field_priority)%>">
<div class="t"><%= h task.priority.name %></div>
<div class="v"><%= task.priority_id %></div>
</div>
<% end %>
<% priority_style = (Backlogs.settings[:show_priority] || task.priority_id != IssuePriority.default.id) ? '' : 'display: none;' %>
<div class="priority_id editable" fieldtype="select" fieldname="priority_id" fieldlabel="<%=l(:field_priority)%>" style="<%=priority_style%>">
<div class="t"><%= h task.priority.name %></div>
<div class="v"><%= task.priority_id %></div>
</div>
<% if User.current.allowed_to?(:update_remaining_hours, @project) %>
<div class="remaining_hours editable" fieldname="remaining_hours" fieldlabel="<%=l(:field_remaining_hours)%>"><%= remaining_hours_or_empty(task) %></div>
<% end %>
Expand Down