diff options
author | Phil Hughes <me@iamphill.com> | 2017-04-28 13:08:18 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-04-28 13:08:18 +0300 |
commit | 471888d60e0d91f4ab75e5d773bd69dee85e6cea (patch) | |
tree | 2b0a2d663136a126bbe5a06eeb6ad672cd7d30d5 /app/views/shared | |
parent | 4b812d979eafa244c9e6b014448bf09bf1b458fd (diff) |
Moved sort endpoints into data attributes
Diffstat (limited to 'app/views/shared')
-rw-r--r-- | app/views/shared/milestones/_tabs.html.haml | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/shared/milestones/_tabs.html.haml b/app/views/shared/milestones/_tabs.html.haml index 6717d59f033..6a6d817b344 100644 --- a/app/views/shared/milestones/_tabs.html.haml +++ b/app/views/shared/milestones/_tabs.html.haml @@ -30,13 +30,13 @@ .tab-content.milestone-content - if milestone.is_a?(GlobalMilestone) || can?(current_user, :read_issue, @project) - .tab-pane.active#tab-issues + .tab-pane.active#tab-issues{ data: { sort_endpoint: (sort_issues_namespace_project_milestone_path(@project.namespace, @project, @milestone) if @project && current_user) } } = render 'shared/milestones/issues_tab', issues: milestone.issues_visible_to_user(current_user).include_associations, show_project_name: show_project_name, show_full_project_name: show_full_project_name - .tab-pane#tab-merge-requests + .tab-pane#tab-merge-requests{ data: { sort_endpoint: (sort_merge_requests_namespace_project_milestone_path(@project.namespace, @project, @milestone) if @project && current_user) } } -# loaded async = render "shared/milestones/tab_loading" - else - .tab-pane.active#tab-merge-requests + .tab-pane.active#tab-merge-requests{ data: { sort_endpoint: (sort_merge_requests_namespace_project_milestone_path(@project.namespace, @project, @milestone) if @project && current_user) } } -# loaded async = render "shared/milestones/tab_loading" .tab-pane#tab-participants |