Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
gitlab-ce
Commits
61eb0509
Commit
61eb0509
authored
Sep 24, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Different layout for browsing public area and public project page while not logged-in
parent
d9046203
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
31 deletions
+34
-31
app/views/layouts/_public_head_panel.html.haml
app/views/layouts/_public_head_panel.html.haml
+22
-0
app/views/layouts/public.html.haml
app/views/layouts/public.html.haml
+3
-31
app/views/layouts/public_projects.html.haml
app/views/layouts/public_projects.html.haml
+9
-0
No files found.
app/views/layouts/_public_head_panel.html.haml
0 → 100644
View file @
61eb0509
%header
.navbar.navbar-static-top.navbar-gitlab
.navbar-inner
.container
%div
.app_logo
%span
.separator
=
link_to
public_root_path
,
class:
"home"
do
%h1
GITLAB
%span
.separator
%h1
.project_name
-
if
@project
=
project_title
(
@project
)
-
else
Public Projects
%ul
.nav
%li
%a
%div
.hide.turbolink-spinner
%i
.icon-refresh.icon-spin
Loading...
%li
=
link_to
"Sign in"
,
new_session_path
(
:user
),
class:
'btn btn-sign-in'
app/views/layouts/public.html.haml
View file @
61eb0509
...
...
@@ -5,35 +5,7 @@
-
if
current_user
=
render
"layouts/head_panel"
,
title:
"Public Projects"
-
else
%header
.navbar.navbar-static-top.navbar-gitlab
.navbar-inner
.container
%div
.app_logo
%span
.separator
=
link_to
public_root_path
,
class:
"home"
do
%h1
GITLAB
%span
.separator
%h1
.project_name
-
if
@project
=
project_title
(
@project
)
-
else
Public Projects
=
render
"layouts/public_head_panel"
%ul
.nav
%li
%a
%div
.hide.turbolink-spinner
%i
.icon-refresh.icon-spin
Loading...
%li
=
link_to
"Sign in"
,
new_session_path
(
:user
),
class:
'btn btn-sign-in'
-
if
@project
%nav
.main-nav
.container
=
render
'layouts/nav/project'
.container
.content
=
yield
-
else
.container.navless-container
.content
=
yield
.container.navless-container
.content
=
yield
app/views/layouts/public_projects.html.haml
0 → 100644
View file @
61eb0509
!!! 5
%html
{
lang:
"en"
}
=
render
"layouts/head"
,
title:
@project
.
name_with_namespace
%body
{
class:
"ui_mars application"
,
:'data-page'
=>
body_data_page
}
=
render
"layouts/public_head_panel"
%nav
.main-nav
.container
=
render
'layouts/nav/project'
.container
.content
=
yield
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