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
Léo-Paul Géneau
gitlab-ce
Commits
d1cb1bf8
Commit
d1cb1bf8
authored
Sep 07, 2017
by
Riccardo Padovani
Committed by
Rémy Coutable
Sep 07, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#34945: add a div id to the readme section in the project overview
parent
0357726d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
app/views/projects/show.html.haml
app/views/projects/show.html.haml
+3
-2
app/views/projects/tree/_readme.html.haml
app/views/projects/tree/_readme.html.haml
+1
-1
changelogs/unreleased/34945-readme-div-id.yml
changelogs/unreleased/34945-readme-div-id.yml
+5
-0
No files found.
app/views/projects/show.html.haml
View file @
d1cb1bf8
...
...
@@ -27,9 +27,10 @@
=
link_to
project_tags_path
(
@project
)
do
#{
n_
(
'Tag'
,
'Tags'
,
@repository
.
tag_count
)
}
(
#{
number_with_delimiter
(
@repository
.
tag_count
)
}
)
-
if
default_project_view
!=
'readme'
&&
@repository
.
readme
-
if
@repository
.
readme
%li
=
link_to
_
(
'Readme'
),
readme_path
(
@project
)
=
link_to
_
(
'Readme'
),
default_project_view
!=
'readme'
?
readme_path
(
@project
)
:
'#readme'
-
if
@repository
.
changelog
%li
...
...
app/views/projects/tree/_readme.html.haml
View file @
d1cb1bf8
-
if
readme
.
rich_viewer
%article
.file-holder.readme-holder
{
class:
(
"limited-width-container"
unless
fluid_layout
)
}
%article
.file-holder.readme-holder
{
id:
'readme'
,
class:
(
"limited-width-container"
unless
fluid_layout
)
}
.js-file-title.file-title
=
blob_icon
readme
.
mode
,
readme
.
name
=
link_to
project_blob_path
(
@project
,
tree_join
(
@ref
,
readme
.
path
))
do
...
...
changelogs/unreleased/34945-readme-div-id.yml
0 → 100644
View file @
d1cb1bf8
---
title
:
Add div id to the readme in the project overview
merge_request
:
13735
author
:
Riccardo Padovani @rpadovani
type
:
added
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