diff options
author | Phil Hughes <me@iamphill.com> | 2017-05-18 16:15:57 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-05-18 16:15:57 +0100 |
commit | 5a0cc1b34913b1f2242e474560ae6e9def1ff282 (patch) | |
tree | 3acb7811e333e2446b367ef948241f5f55299dd0 /app/views | |
parent | 3114147b0e72c35abd48110bc17fe1c8be5ab396 (diff) | |
download | gitlab-ce-5a0cc1b34913b1f2242e474560ae6e9def1ff282.tar.gz |
Initial render of issue title & description
Instead of wait for Vue for data which can cause a flash of no content depending on how quickly the API returns data. This renders the data with HAML & then passes this over to Vue to render
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/projects/issues/show.html.haml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/projects/issues/show.html.haml b/app/views/projects/issues/show.html.haml index 0ad615535d7..ce6e0f91999 100644 --- a/app/views/projects/issues/show.html.haml +++ b/app/views/projects/issues/show.html.haml @@ -56,6 +56,11 @@ "is-edited": @issue.is_edited?, } } .issue-title-entrypoint + %h2.title.js-issue-title= markdown_field(@issue, :title) + - if @issue.description.present? + .description{ class: can?(current_user, :update_issue, @issue) ? 'js-task-list-container' : '' } + .wiki.js-issue-description= markdown_field(@issue, :description) + %textarea.hidden.js-task-list-field= @issue.description #merge-requests{ data: { url: referenced_merge_requests_namespace_project_issue_url(@project.namespace, @project, @issue) } } // This element is filled in using JavaScript. |