Make section connect with window border without extra padding

This commit is contained in:
Douwe Maan 2017-05-25 15:34:27 -05:00
parent 343b844ab4
commit 7adebd5404
9 changed files with 35 additions and 29 deletions

View file

@ -1,3 +1,5 @@
- @no_container = true
= content_for :meta_tags do = content_for :meta_tags do
= auto_discovery_link_tag(:atom, dashboard_projects_url(rss_url_options), title: "All activity") = auto_discovery_link_tag(:atom, dashboard_projects_url(rss_url_options), title: "All activity")
@ -7,7 +9,8 @@
.hidden-xs .hidden-xs
= render "projects/last_push" = render "projects/last_push"
= render 'dashboard/activity_head' %div{ class: container_class }
= render 'dashboard/activity_head'
%section.activities %section.activities
= render 'activities' = render 'activities'

View file

@ -1,19 +1,21 @@
- @no_container = true
= content_for :meta_tags do = content_for :meta_tags do
= auto_discovery_link_tag(:atom, dashboard_projects_url(rss_url_options), title: "All activity") = auto_discovery_link_tag(:atom, dashboard_projects_url(rss_url_options), title: "All activity")
- page_title "Projects" - page_title "Projects"
- header_title "Projects", dashboard_projects_path - header_title "Projects", dashboard_projects_path
- unless show_user_callout?
= render 'shared/user_callout'
= render "projects/last_push" = render "projects/last_push"
- if @projects.any? || params[:name] %div{ class: container_class }
= render 'dashboard/projects_head' - unless show_user_callout?
= render 'shared/user_callout'
- if @projects.any? || params[:name]
= render 'dashboard/projects_head'
- if @projects.any? || params[:name] - if @projects.any? || params[:name]
= render 'projects' = render 'projects'
- else - else
= render "zero_authorized_projects" = render "zero_authorized_projects"

View file

@ -1,12 +1,15 @@
- @no_container = true
- page_title "Starred Projects" - page_title "Starred Projects"
- header_title "Projects", dashboard_projects_path - header_title "Projects", dashboard_projects_path
= render "projects/last_push" = render "projects/last_push"
= render 'dashboard/projects_head' %div{ class: container_class }
= render 'dashboard/projects_head'
- if @projects.any? || params[:filter_projects] - if @projects.any? || params[:filter_projects]
= render 'projects' = render 'projects'
- else - else
%h3 You don't have starred projects yet %h3 You don't have starred projects yet
%p.slead Visit project page and press on star icon and it will appear on this page. %p.slead Visit project page and press on star icon and it will appear on this page.

View file

@ -4,7 +4,6 @@
= auto_discovery_link_tag(:atom, group_url(@group, rss_url_options), title: "#{@group.name} activity") = auto_discovery_link_tag(:atom, group_url(@group, rss_url_options), title: "#{@group.name} activity")
= render 'groups/head' = render 'groups/head'
= render 'groups/home_panel' = render 'groups/home_panel'
.groups-header{ class: container_class } .groups-header{ class: container_class }

View file

@ -1,5 +1,3 @@
- @no_container = true
%div{ class: container_class } %div{ class: container_class }
.nav-block.activity-filter-block.activities .nav-block.activity-filter-block.activities
.controls .controls

View file

@ -1,7 +1,8 @@
- @no_container = true
- page_title "Activity" - page_title "Activity"
= render "projects/head" = render "projects/head"
%div{ class: container_class } = render 'projects/last_push'
= render 'projects/last_push'
= render 'projects/activity' = render 'projects/activity'

View file

@ -1,13 +1,14 @@
- @no_container = true - @no_container = true
- page_title @blob.path, @ref - page_title @blob.path, @ref
= render "projects/commits/head" = render "projects/commits/head"
- content_for :page_specific_javascripts do - content_for :page_specific_javascripts do
= page_specific_javascript_bundle_tag('blob') = page_specific_javascript_bundle_tag('blob')
%div{ class: container_class } = render 'projects/last_push'
= render 'projects/last_push'
%div{ class: container_class }
#tree-holder.tree-holder #tree-holder.tree-holder
= render 'blob', blob: @blob = render 'blob', blob: @blob

View file

@ -11,8 +11,7 @@
= webpack_bundle_tag 'filtered_search' = webpack_bundle_tag 'filtered_search'
%div{ class: container_class } = render 'projects/last_push'
= render 'projects/last_push'
- if @project.merge_requests.exists? - if @project.merge_requests.exists?
%div{ class: container_class } %div{ class: container_class }

View file

@ -5,7 +5,7 @@
= auto_discovery_link_tag(:atom, namespace_project_commits_url(@project.namespace, @project, @ref, rss_url_options), title: "#{@project.name}:#{@ref} commits") = auto_discovery_link_tag(:atom, namespace_project_commits_url(@project.namespace, @project, @ref, rss_url_options), title: "#{@project.name}:#{@ref} commits")
= render "projects/commits/head" = render "projects/commits/head"
%div{ class: container_class } = render 'projects/last_push'
= render 'projects/last_push'
%div{ class: container_class }
= render 'projects/files', commit: @last_commit, project: @project, ref: @ref = render 'projects/files', commit: @last_commit, project: @project, ref: @ref