From 5a0cc1b34913b1f2242e474560ae6e9def1ff282 Mon Sep 17 00:00:00 2001 From: Phil Hughes Date: Thu, 18 May 2017 16:15:57 +0100 Subject: 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 --- app/views/projects/issues/show.html.haml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'app/views') 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. -- cgit v1.2.1