BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
5f996e8c
Commit
5f996e8c
authored
Jul 07, 2017
by
Annabel Dunstone Gray
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'new-breadcrumbs-alerts-below' into 'master'
Moves alert boxes to below the breadcrumbs See merge request !12631
parents
1dab6403
17ff1f83
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
_page.html.haml
app/views/layouts/_page.html.haml
+4
-2
empty.html.haml
app/views/projects/empty.html.haml
+2
-1
show.html.haml
app/views/projects/show.html.haml
+2
-1
No files found.
app/views/layouts/_page.html.haml
View file @
5f996e8c
...
...
@@ -12,10 +12,12 @@
.content-wrapper
{
class:
"#{(layout_nav_class unless show_new_nav?)}"
}
.alert-wrapper
=
render
"layouts/broadcast"
-
if
show_new_nav?
-
if
content_for?
(
:new_global_flash
)
=
yield
:new_global_flash
=
render
"layouts/nav/breadcrumbs"
=
render
"layouts/flash"
=
yield
:flash_message
-
if
show_new_nav?
=
render
"layouts/nav/breadcrumbs"
%div
{
class:
"#{(container_class unless @no_container)} #{@content_class}"
}
.content
{
id:
"content-body"
}
=
yield
app/views/projects/empty.html.haml
View file @
5f996e8c
-
@no_container
=
true
-
flash_message_container
=
show_new_nav?
?
:
new_global_flash
:
:flash_message
=
content_for
:flash_message
do
=
content_for
flash_message_container
do
-
if
current_user
&&
can?
(
current_user
,
:download_code
,
@project
)
=
render
'shared/no_ssh'
=
render
'shared/no_password'
...
...
app/views/projects/show.html.haml
View file @
5f996e8c
-
@no_container
=
true
-
flash_message_container
=
show_new_nav?
?
:
new_global_flash
:
:flash_message
=
content_for
:meta_tags
do
=
auto_discovery_link_tag
(
:atom
,
project_path
(
@project
,
rss_url_options
),
title:
"
#{
@project
.
name
}
activity"
)
=
content_for
:flash_message
do
=
content_for
flash_message_container
do
-
if
current_user
&&
can?
(
current_user
,
:download_code
,
@project
)
=
render
'shared/no_ssh'
=
render
'shared/no_password'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment