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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
8917ae39
Commit
8917ae39
authored
Apr 21, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add atom link tag to every page that has one.
parent
27289599
Changes
9
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
34 additions
and
10 deletions
+34
-10
app/views/dashboard/issues.html.haml
app/views/dashboard/issues.html.haml
+4
-0
app/views/dashboard/show.html.haml
app/views/dashboard/show.html.haml
+4
-0
app/views/groups/issues.html.haml
app/views/groups/issues.html.haml
+4
-0
app/views/groups/show.html.haml
app/views/groups/show.html.haml
+4
-0
app/views/layouts/_head.html.haml
app/views/layouts/_head.html.haml
+3
-10
app/views/projects/commits/show.html.haml
app/views/projects/commits/show.html.haml
+4
-0
app/views/projects/issues/index.html.haml
app/views/projects/issues/index.html.haml
+4
-0
app/views/projects/tree/show.html.haml
app/views/projects/tree/show.html.haml
+4
-0
app/views/users/show.html.haml
app/views/users/show.html.haml
+3
-0
No files found.
app/views/dashboard/issues.html.haml
View file @
8917ae39
=
content_for
:meta_tags
do
-
if
current_user
=
auto_discovery_link_tag
(
:atom
,
issues_dashboard_url
(
format: :atom
,
private_token:
current_user
.
private_token
),
title:
"
#{
current_user
.
name
}
issues"
)
%h3
.page-title
%h3
.page-title
Issues
Issues
...
...
app/views/dashboard/show.html.haml
View file @
8917ae39
=
content_for
:meta_tags
do
-
if
current_user
=
auto_discovery_link_tag
(
:atom
,
dashboard_url
(
format: :atom
,
private_token:
current_user
.
private_token
),
title:
"All activity"
)
-
if
@projects
.
any?
-
if
@projects
.
any?
.dashboard.row
.dashboard.row
%section
.activities.col-md-8
%section
.activities.col-md-8
...
...
app/views/groups/issues.html.haml
View file @
8917ae39
=
content_for
:meta_tags
do
-
if
current_user
=
auto_discovery_link_tag
(
:atom
,
issues_group_url
(
@group
,
format: :atom
,
private_token:
current_user
.
private_token
),
title:
"
#{
@group
.
name
}
issues"
)
%h3
.page-title
%h3
.page-title
Issues
Issues
...
...
app/views/groups/show.html.haml
View file @
8917ae39
=
content_for
:meta_tags
do
-
if
current_user
=
auto_discovery_link_tag
(
:atom
,
group_url
(
@group
,
format: :atom
,
private_token:
current_user
.
private_token
),
title:
"
#{
@group
.
name
}
activity"
)
.dashboard
.dashboard
.header-with-avatar.clearfix
.header-with-avatar.clearfix
=
image_tag
group_icon
(
@group
),
class:
"avatar group-avatar s90"
=
image_tag
group_icon
(
@group
),
class:
"avatar group-avatar s90"
...
...
app/views/layouts/_head.html.haml
View file @
8917ae39
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
%title
%title
=
"
#{
title
}
| "
if
defined?
(
title
)
=
"
#{
title
}
| "
if
defined?
(
title
)
GitLab
GitLab
=
favicon_link_tag
'favicon.ico'
=
favicon_link_tag
'favicon.ico'
=
stylesheet_link_tag
"application"
,
:media
=>
"all"
=
stylesheet_link_tag
"application"
,
:media
=>
"all"
=
stylesheet_link_tag
"print"
,
:media
=>
"print"
=
stylesheet_link_tag
"print"
,
:media
=>
"print"
...
@@ -14,16 +15,8 @@
...
@@ -14,16 +15,8 @@
%meta
{
name:
'viewport'
,
content:
'width=device-width, initial-scale=1, maximum-scale=1'
}
%meta
{
name:
'viewport'
,
content:
'width=device-width, initial-scale=1, maximum-scale=1'
}
%meta
{
name:
'theme-color'
,
content:
'#474D57'
}
%meta
{
name:
'theme-color'
,
content:
'#474D57'
}
=
yield
(
:meta_tags
)
=
render
'layouts/google_analytics'
if
extra_config
.
has_key?
(
'google_analytics_id'
)
=
render
'layouts/google_analytics'
if
extra_config
.
has_key?
(
'google_analytics_id'
)
=
render
'layouts/piwik'
if
extra_config
.
has_key?
(
'piwik_url'
)
&&
extra_config
.
has_key?
(
'piwik_site_id'
)
=
render
'layouts/piwik'
if
extra_config
.
has_key?
(
'piwik_url'
)
&&
extra_config
.
has_key?
(
'piwik_site_id'
)
=
render
'layouts/bootlint'
if
Rails
.
env
.
development?
=
render
'layouts/bootlint'
if
Rails
.
env
.
development?
-# Atom feed
-
if
current_user
-
if
controller_name
==
'projects'
&&
action_name
==
'index'
=
auto_discovery_link_tag
:atom
,
projects_url
(
:atom
,
private_token:
current_user
.
private_token
),
title:
"Dashboard feed"
-
if
@project
&&
!
@project
.
new_record?
-
if
current_controller?
(
:tree
,
:commits
)
=
auto_discovery_link_tag
(
:atom
,
namespace_project_commits_url
(
@project
.
namespace
,
@project
,
@ref
,
format: :atom
,
private_token:
current_user
.
private_token
),
title:
"Recent commits to
#{
@project
.
name
}
:
#{
@ref
}
"
)
-
if
current_controller?
(
:issues
)
=
auto_discovery_link_tag
(
:atom
,
namespace_project_issues_url
(
@project
.
namespace
,
@project
,
:atom
,
private_token:
current_user
.
private_token
),
title:
"
#{
@project
.
name
}
issues"
)
app/views/projects/commits/show.html.haml
View file @
8917ae39
=
content_for
:meta_tags
do
-
if
current_user
=
auto_discovery_link_tag
(
:atom
,
namespace_project_commits_url
(
@project
.
namespace
,
@project
,
@ref
,
format: :atom
,
private_token:
current_user
.
private_token
),
title:
"Recent commits to
#{
@project
.
name
}
:
#{
@ref
}
"
)
=
render
"head"
=
render
"head"
.tree-ref-holder
.tree-ref-holder
...
...
app/views/projects/issues/index.html.haml
View file @
8917ae39
=
content_for
:meta_tags
do
-
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"
)
.append-bottom-10
.append-bottom-10
.pull-right
.pull-right
.pull-left
.pull-left
...
...
app/views/projects/tree/show.html.haml
View file @
8917ae39
=
content_for
:meta_tags
do
-
if
current_user
=
auto_discovery_link_tag
(
:atom
,
namespace_project_commits_url
(
@project
.
namespace
,
@project
,
@ref
,
format: :atom
,
private_token:
current_user
.
private_token
),
title:
"Recent commits to
#{
@project
.
name
}
:
#{
@ref
}
"
)
.tree-ref-holder
.tree-ref-holder
=
render
'shared/ref_switcher'
,
destination:
'tree'
,
path:
@path
=
render
'shared/ref_switcher'
,
destination:
'tree'
,
path:
@path
...
...
app/views/users/show.html.haml
View file @
8917ae39
=
content_for
:meta_tags
do
=
auto_discovery_link_tag
(
:atom
,
user_url
(
@user
,
format: :atom
),
title:
"Activity feed for
#{
@user
.
name
}
"
)
.row
.row
=
link_to
'#aside'
,
class:
'show-aside'
do
=
link_to
'#aside'
,
class:
'show-aside'
do
%i
.fa.fa-angle-left
%i
.fa.fa-angle-left
...
...
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