summaryrefslogtreecommitdiff
path: root/app/views/projects/issues
diff options
context:
space:
mode:
authorLuke "Jared" Bennett <lbennett@gitlab.com>2017-05-22 11:38:11 +0100
committerLuke "Jared" Bennett <lbennett@gitlab.com>2017-05-31 11:35:05 +0100
commitd537a9a45b23bac1aaff028302aae515d6afe949 (patch)
tree89c495d23e26ed29c1d1b0b2ef968a0e3263baf7 /app/views/projects/issues
parentab0374f4d6e2bb72ee3040b9b906c2be23519cd7 (diff)
downloadgitlab-ce-d537a9a45b23bac1aaff028302aae515d6afe949.tar.gz
Move issuable_app_data to helper
Diffstat (limited to 'app/views/projects/issues')
-rw-r--r--app/views/projects/issues/show.html.haml5
1 files changed, 1 insertions, 4 deletions
diff --git a/app/views/projects/issues/show.html.haml b/app/views/projects/issues/show.html.haml
index f81a68744c0..4ce1f56da7d 100644
--- a/app/views/projects/issues/show.html.haml
+++ b/app/views/projects/issues/show.html.haml
@@ -55,10 +55,7 @@
.issue-details.issuable-details
.detail-page-description.content-block
- - issuable_app_data = { "endpoint" => realtime_changes_namespace_project_issue_path(@project.namespace, @project, @issue), "can-update" => can?(current_user, :update_issue, @issue).to_s, "issuable-ref" => @issue.to_reference }
- - updated_at_by = updated_at_by(@issue)
- - issuable_app_data.merge(updated_at_by) if updated_at_by.present?
- #js-issuable-app{ data: issuable_app_data }
+ #js-issuable-app{ data: issuable_app_data(@project, @issue) }
%h2.title= markdown_field(@issue, :title)
- if @issue.description.present?
.description{ class: can?(current_user, :update_issue, @issue) ? 'js-task-list-container' : '' }