Commit 13fc95ac authored by Valery Sizov's avatar Valery Sizov

Remove unnecessary parens

parent 1a68a0a6
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
- page_title "Background Jobs" - page_title "Background Jobs"
= render 'admin/background_jobs/head' = render 'admin/background_jobs/head'
%div{ class: (container_class) } %div{ class: container_class }
%h3.page-title Background Jobs %h3.page-title Background Jobs
%p.light GitLab uses #{link_to "sidekiq", "http://sidekiq.org/"} library for async job processing %p.light GitLab uses #{link_to "sidekiq", "http://sidekiq.org/"} library for async job processing
......
- @no_container = true - @no_container = true
= render "admin/dashboard/head" = render "admin/dashboard/head"
%div{ class: (container_class) } %div{ class: container_class }
.top-area .top-area
%ul.nav-links %ul.nav-links
......
- @no_container = true - @no_container = true
= render "admin/dashboard/head" = render "admin/dashboard/head"
%div{ class: (container_class) } %div{ class: container_class }
.admin-dashboard.prepend-top-default .admin-dashboard.prepend-top-default
.row .row
.col-md-4 .col-md-4
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
- page_title "Groups" - page_title "Groups"
= render "admin/dashboard/head" = render "admin/dashboard/head"
%div{ class: (container_class) } %div{ class: container_class }
%h3.page-title %h3.page-title
Groups (#{number_with_delimiter(@groups.total_count)}) Groups (#{number_with_delimiter(@groups.total_count)})
...@@ -39,7 +39,6 @@ ...@@ -39,7 +39,6 @@
= link_to 'New Group', new_admin_group_path, class: "btn btn-new" = link_to 'New Group', new_admin_group_path, class: "btn btn-new"
%ul.content-list %ul.content-list
- @groups.each do |group| = render @groups
= render 'group', group: group
= paginate @groups, theme: "gitlab" = paginate @groups, theme: "gitlab"
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
- page_title "Health Check" - page_title "Health Check"
= render 'admin/background_jobs/head' = render 'admin/background_jobs/head'
%div{ class: (container_class) } %div{ class: container_class }
%h3.page-title %h3.page-title
Health Check Health Check
.bs-callout.clearfix .bs-callout.clearfix
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
Gitlab::RepositoryCheckLogger] Gitlab::RepositoryCheckLogger]
= render 'admin/background_jobs/head' = render 'admin/background_jobs/head'
%div{ class: (container_class) } %div{ class: container_class }
%ul.nav-links.log-tabs %ul.nav-links.log-tabs
- loggers.each do |klass| - loggers.each do |klass|
%li{ class: (klass == Gitlab::GitLogger ? 'active' : '') } %li{ class: (klass == Gitlab::GitLogger ? 'active' : '') }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
= render 'shared/show_aside' = render 'shared/show_aside'
= render "admin/dashboard/head" = render "admin/dashboard/head"
%div{ class: (container_class) } %div{ class: container_class }
.row.prepend-top-default .row.prepend-top-default
%aside.col-md-3 %aside.col-md-3
.panel.admin-filter .panel.admin-filter
......
- @no_container = true - @no_container = true
= render "admin/dashboard/head" = render "admin/dashboard/head"
%div{ class: (container_class) } %div{ class: container_class }
%p.prepend-top-default %p.prepend-top-default
%span %span
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
- page_title "System Info" - page_title "System Info"
= render 'admin/background_jobs/head' = render 'admin/background_jobs/head'
%div{ class: (container_class) } %div{ class: container_class }
.prepend-top-default .prepend-top-default
.row .row
.col-sm-4 .col-sm-4
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
= render 'shared/show_aside' = render 'shared/show_aside'
= render "admin/dashboard/head" = render "admin/dashboard/head"
%div{ class: (container_class) } %div{ class: container_class }
.admin-filter .admin-filter
%ul.nav-links %ul.nav-links
%li{class: "#{'active' unless params[:filter]}"} %li{class: "#{'active' unless params[:filter]}"}
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
= auto_discovery_link_tag(:atom, group_url(@group, format: :atom, private_token: current_user.private_token), title: "#{@group.name} activity") = auto_discovery_link_tag(:atom, group_url(@group, format: :atom, private_token: current_user.private_token), title: "#{@group.name} activity")
.cover-block.groups-cover-block .cover-block.groups-cover-block
%div{ class: (container_class) } %div{ class: container_class }
= link_to group_icon(@group), target: '_blank' do = link_to group_icon(@group), target: '_blank' do
= image_tag group_icon(@group), class: "avatar group-avatar s70" = image_tag group_icon(@group), class: "avatar group-avatar s70"
.group-info .group-info
......
- empty_repo = @project.empty_repo? - empty_repo = @project.empty_repo?
.project-home-panel.cover-block.clearfix{:class => ("empty-project" if empty_repo)} .project-home-panel.cover-block.clearfix{:class => ("empty-project" if empty_repo)}
%div{ class: (container_class) } %div{ class: container_class }
.row .row
.project-image-container .project-image-container
= project_icon(@project, alt: '', class: 'project-avatar avatar s70') = project_icon(@project, alt: '', class: 'project-avatar avatar s70')
......
- if event = last_push_event - if event = last_push_event
- if show_last_push_widget?(event) - if show_last_push_widget?(event)
.row-content-block.top-block.clear-block.hidden-xs .row-content-block.top-block.clear-block.hidden-xs
%div{ class: (container_class) } %div{ class: container_class }
.event-last-push .event-last-push
.event-last-push-text .event-last-push-text
%span You pushed to %span You pushed to
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
- page_title @blob.path, @ref - page_title @blob.path, @ref
= render "projects/commits/head" = render "projects/commits/head"
%div{ class: (container_class) } %div{ class: container_class }
= render 'projects/last_push' = render 'projects/last_push'
%div#tree-holder.tree-holder %div#tree-holder.tree-holder
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
- page_title "Branches" - page_title "Branches"
= render "projects/commits/head" = render "projects/commits/head"
%div{ class: (container_class) } %div{ class: container_class }
.top-area .top-area
.nav-text .nav-text
Protected branches can be managed in project settings Protected branches can be managed in project settings
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
= sort_title_recently_updated = sort_title_recently_updated
= link_to namespace_project_branches_path(sort: 'last_updated') do = link_to namespace_project_branches_path(sort: 'last_updated') do
= sort_title_oldest_updated = sort_title_oldest_updated
- unless @branches.empty? - if @branches.any?
%ul.content-list.all-branches %ul.content-list.all-branches
- @branches.each do |branch| - @branches.each do |branch|
= render "projects/branches/branch", branch: branch = render "projects/branches/branch", branch: branch
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
- page_title "Builds" - page_title "Builds"
= render "projects/pipelines/head" = render "projects/pipelines/head"
%div{ class: (container_class) } %div{ class: container_class }
.top-area .top-area
%ul.nav-links %ul.nav-links
%li{class: ('active' if @scope.nil?)} %li{class: ('active' if @scope.nil?)}
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
= render "head" = render "head"
%div{ class: (container_class) } %div{ class: container_class }
.row-content-block.second-block.content-component-block .row-content-block.second-block.content-component-block
.tree-ref-holder .tree-ref-holder
= render 'shared/ref_switcher', destination: 'commits' = render 'shared/ref_switcher', destination: 'commits'
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
- page_title "Compare" - page_title "Compare"
= render "projects/commits/head" = render "projects/commits/head"
%div{ class: (container_class) } %div{ class: container_class }
.sub-header-block .sub-header-block
Compare branches, tags or commit ranges. Compare branches, tags or commit ranges.
%br %br
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
- page_title "#{params[:from]}...#{params[:to]}" - page_title "#{params[:from]}...#{params[:to]}"
= render "projects/commits/head" = render "projects/commits/head"
%div{ class: (container_class) } %div{ class: container_class }
.sub-header-block.no-bottom-space .sub-header-block.no-bottom-space
= render "form" = render "form"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
- page_title "Environments" - page_title "Environments"
= render "projects/pipelines/head" = render "projects/pipelines/head"
%div{ class: (container_class) } %div{ class: container_class }
- if can?(current_user, :create_environment, @project) && !@environments.blank? - if can?(current_user, :create_environment, @project) && !@environments.blank?
.top-area .top-area
.nav-controls .nav-controls
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
- page_title "Environments" - page_title "Environments"
= render "projects/pipelines/head" = render "projects/pipelines/head"
%div{ class: (container_class) } %div{ class: container_class }
.top-area .top-area
.col-md-9 .col-md-9
%h3.page-title= @environment.name.titleize %h3.page-title= @environment.name.titleize
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
- page_title "Continuous Integration", "Graphs" - page_title "Continuous Integration", "Graphs"
= render 'head' = render 'head'
%div{ class: (container_class) } %div{ class: container_class }
.sub-header-block .sub-header-block
.oneline .oneline
A collection of graphs for Continuous Integration A collection of graphs for Continuous Integration
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
- page_title "Commits", "Graphs" - page_title "Commits", "Graphs"
= render 'head' = render 'head'
%div{ class: (container_class) } %div{ class: container_class }
.sub-header-block .sub-header-block
.tree-ref-holder .tree-ref-holder
= render 'shared/ref_switcher', destination: 'graphs_commits' = render 'shared/ref_switcher', destination: 'graphs_commits'
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
- page_title "Languages", "Graphs" - page_title "Languages", "Graphs"
= render 'head' = render 'head'
%div{ class: (container_class) } %div{ class: container_class }
.sub-header-block .sub-header-block
.oneline .oneline
Programming languages used in this repository Programming languages used in this repository
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
- page_title "Contributors", "Graphs" - page_title "Contributors", "Graphs"
= render 'head' = render 'head'
%div{ class: (container_class) } %div{ class: container_class }
.sub-header-block .sub-header-block
.tree-ref-holder .tree-ref-holder
= render 'shared/ref_switcher', destination: 'graphs' = render 'shared/ref_switcher', destination: 'graphs'
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
- if current_user - if current_user
= auto_discovery_link_tag(:atom, namespace_project_issues_url(@project.namespace, @project, :atom, private_token: current_user.private_token), title: "#{@project.name} issues") = auto_discovery_link_tag(:atom, namespace_project_issues_url(@project.namespace, @project, :atom, private_token: current_user.private_token), title: "#{@project.name} issues")
%div{ class: (container_class) } %div{ class: container_class }
.top-area .top-area
= render 'shared/issuable/nav', type: :issues = render 'shared/issuable/nav', type: :issues
.nav-controls .nav-controls
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
- hide_class = '' - hide_class = ''
= render "projects/issues/head" = render "projects/issues/head"
%div{ class: (container_class) } %div{ class: container_class }
.top-area.adjust .top-area.adjust
.nav-text .nav-text
Labels can be applied to issues and merge requests. Star a label to make it a priority label. Order the prioritized labels to change their relative priority, by dragging. Labels can be applied to issues and merge requests. Star a label to make it a priority label. Order the prioritized labels to change their relative priority, by dragging.
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
= render "projects/issues/head" = render "projects/issues/head"
= render 'projects/last_push' = render 'projects/last_push'
%div{ class: (container_class) } %div{ class: container_class }
.top-area .top-area
= render 'shared/issuable/nav', type: :merge_requests = render 'shared/issuable/nav', type: :merge_requests
.nav-controls .nav-controls
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
- page_title "Milestones" - page_title "Milestones"
= render "projects/issues/head" = render "projects/issues/head"
%div{ class: (container_class) } %div{ class: container_class }
.top-area .top-area
= render 'shared/milestones_filter' = render 'shared/milestones_filter'
......
- @no_container = true - @no_container = true
%div{ class: (container_class) } %div{ class: container_class }
.row-content-block.second-block.content-component-block .row-content-block.second-block.content-component-block
.tree-ref-holder .tree-ref-holder
= render partial: 'shared/ref_switcher', locals: {destination: 'graph'} = render partial: 'shared/ref_switcher', locals: {destination: 'graph'}
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
= page_specific_javascript_tag('network/application.js') = page_specific_javascript_tag('network/application.js')
= render "projects/commits/head" = render "projects/commits/head"
= render "head" = render "head"
%div{ class: (container_class) } %div{ class: container_class }
.project-network .project-network
.controls .controls
= form_tag namespace_project_network_path(@project.namespace, @project, @id), method: :get, class: 'form-inline network-form' do |f| = form_tag namespace_project_network_path(@project.namespace, @project, @id), method: :get, class: 'form-inline network-form' do |f|
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
- page_title "Pipelines" - page_title "Pipelines"
= render "projects/pipelines/head" = render "projects/pipelines/head"
%div{ class: (container_class) } %div{ class: container_class }
.top-area .top-area
%ul.nav-links %ul.nav-links
%li{class: ('active' if @scope.nil?)} %li{class: ('active' if @scope.nil?)}
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
= render "home_panel" = render "home_panel"
.project-stats.row-content-block.second-block .project-stats.row-content-block.second-block
%div{ class: (container_class) } %div{ class: container_class }
%ul.nav %ul.nav
%li %li
= link_to project_files_path(@project) do = link_to project_files_path(@project) do
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
- page_title "Tags" - page_title "Tags"
= render "projects/commits/head" = render "projects/commits/head"
%div{ class: (container_class) } %div{ class: container_class }
.top-area .top-area
.nav-text .nav-text
Tags give the ability to mark specific points in history as being important Tags give the ability to mark specific points in history as being important
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
= sort_title_oldest_updated = sort_title_oldest_updated
.tags .tags
- unless @tags.empty? - if @tags.any?
%ul.content-list %ul.content-list
= render partial: 'tag', collection: @tags = render partial: 'tag', collection: @tags
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
= render 'projects/last_push' = render 'projects/last_push'
= render "projects/commits/head" = render "projects/commits/head"
%div{ class: (container_class) } %div{ class: container_class }
.tree-controls .tree-controls
= render 'projects/find_file_link' = render 'projects/find_file_link'
- if can? current_user, :download_code, @project - if can? current_user, :download_code, @project
......
- @no_container = true - @no_container = true
%div{ class: (container_class) } %div{ class: container_class }
%div#modal-new-wiki.modal %div#modal-new-wiki.modal
.modal-dialog .modal-dialog
.modal-content .modal-content
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
- page_title "Edit", @page.title.capitalize, "Wiki" - page_title "Edit", @page.title.capitalize, "Wiki"
= render 'nav' = render 'nav'
%div{ class: (container_class) } %div{ class: container_class }
.top-area .top-area
.nav-text .nav-text
%strong %strong
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
- page_title "Git Access", "Wiki" - page_title "Git Access", "Wiki"
= render 'nav' = render 'nav'
%div{ class: (container_class) } %div{ class: container_class }
.sub-header-block .sub-header-block
%span.oneline %span.oneline
Git access for Git access for
......
- page_title "History", @page.title.capitalize, "Wiki" - page_title "History", @page.title.capitalize, "Wiki"
= render 'nav' = render 'nav'
%div{ class: (container_class) } %div{ class: container_class }
.top-area .top-area
.nav-text .nav-text
%strong %strong
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
= render 'nav' = render 'nav'
%div{ class: (container_class) } %div{ class: container_class }
%ul.content-list %ul.content-list
- @wiki_pages.each do |wiki_page| - @wiki_pages.each do |wiki_page|
%li %li
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
- page_title @page.title.capitalize, "Wiki" - page_title @page.title.capitalize, "Wiki"
= render 'nav' = render 'nav'
%div{ class: (container_class) } %div{ class: container_class }
.top-area .top-area
.nav-text .nav-text
%strong= @page.title.capitalize %strong= @page.title.capitalize
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment