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
31e50ed3
Commit
31e50ed3
authored
Sep 30, 2014
by
Marin Jankovski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tab for readme and load readme in tab.
parent
ff2b0bfa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
61 additions
and
48 deletions
+61
-48
app/views/projects/show.html.haml
app/views/projects/show.html.haml
+61
-48
No files found.
app/views/projects/show.html.haml
View file @
31e50ed3
=
render
"home_panel"
=
render
"home_panel"
-
readme
=
@repository
.
readme
%ul
.nav.nav-tabs
%ul
.nav.nav-tabs
%li
.active
%li
.active
=
link_to
project_path
(
@project
)
do
=
link_to
'#tab-activity'
,
'data-toggle'
=>
'tab'
do
Activity
Activity
-
if
readme
%li
=
link_to
'#tab-readme'
,
'data-toggle'
=>
'tab'
do
Readme
.project-home-links
.project-home-links
-
unless
@project
.
empty_repo?
-
unless
@project
.
empty_repo?
=
link_to
pluralize
(
number_with_delimiter
(
@repository
.
commit_count
),
'commit'
),
project_commits_path
(
@project
,
@ref
||
@repository
.
root_ref
)
=
link_to
pluralize
(
number_with_delimiter
(
@repository
.
commit_count
),
'commit'
),
project_commits_path
(
@project
,
@ref
||
@repository
.
root_ref
)
...
@@ -11,7 +16,9 @@
...
@@ -11,7 +16,9 @@
=
link_to
pluralize
(
number_with_delimiter
(
@repository
.
tag_names
.
count
),
'tag'
),
project_tags_path
(
@project
)
=
link_to
pluralize
(
number_with_delimiter
(
@repository
.
tag_names
.
count
),
'tag'
),
project_tags_path
(
@project
)
%span
.light.prepend-left-20
=
repository_size
%span
.light.prepend-left-20
=
repository_size
.row
.tab-content
.tab-pane.active
#tab-activity
.row
%section
.col-md-9
%section
.col-md-9
=
render
"events/event_last_push"
,
event:
@last_push
=
render
"events/event_last_push"
,
event:
@last_push
=
render
'shared/event_filter'
=
render
'shared/event_filter'
...
@@ -37,11 +44,6 @@
...
@@ -37,11 +44,6 @@
=
link_to
project_compare_index_path
(
@project
,
from:
@repository
.
root_ref
,
to:
@ref
||
@repository
.
root_ref
),
class:
'btn btn-block'
do
=
link_to
project_compare_index_path
(
@project
,
from:
@repository
.
root_ref
,
to:
@ref
||
@repository
.
root_ref
),
class:
'btn btn-block'
do
Compare code
Compare code
-
if
@repository
.
readme
-
readme
=
@repository
.
readme
=
link_to
project_blob_path
(
@project
,
tree_join
(
@repository
.
root_ref
,
readme
.
name
)),
class:
'btn btn-block'
do
=
readme
.
name
-
if
@repository
.
version
-
if
@repository
.
version
-
version
=
@repository
.
version
-
version
=
@repository
.
version
=
link_to
project_blob_path
(
@project
,
tree_join
(
@repository
.
root_ref
,
version
.
name
)),
class:
'btn btn-block'
do
=
link_to
project_blob_path
(
@project
,
tree_join
(
@repository
.
root_ref
,
version
.
name
)),
class:
'btn btn-block'
do
...
@@ -65,3 +67,14 @@
...
@@ -65,3 +67,14 @@
%hr
%hr
=
link_to
@project
.
gitlab_ci_service
.
builds_path
do
=
link_to
@project
.
gitlab_ci_service
.
builds_path
do
=
image_tag
@project
.
gitlab_ci_service
.
status_img_path
,
alt:
"build status"
=
image_tag
@project
.
gitlab_ci_service
.
status_img_path
,
alt:
"build status"
-
if
readme
.tab-pane
#tab-readme
%article
.readme-holder
#README
=
link_to
project_blob_path
(
@project
,
tree_join
(
@repository
.
root_ref
,
readme
.
name
))
do
%h4
.readme-file-title
%i
.icon-file
=
readme
.
name
.wiki
=
render_readme
(
readme
)
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