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
iv
gitlab-ce
Commits
3ce0557a
Commit
3ce0557a
authored
May 05, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move tabs with activity/readme to section
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
31e5cd21
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
56 deletions
+55
-56
app/views/projects/_section.html.haml
app/views/projects/_section.html.haml
+31
-12
app/views/projects/show.html.haml
app/views/projects/show.html.haml
+24
-44
No files found.
app/views/projects/_section.html.haml
View file @
3ce0557a
.hidden-xs
%ul
.nav.nav-tabs
%li
.active
=
link_to
'#tab-activity'
,
'data-toggle'
=>
'tab'
do
Activity
-
if
@repository
.
readme
%li
=
link_to
'#tab-readme'
,
'data-toggle'
=>
'tab'
do
Readme
.tab-content
.tab-pane.active
#tab-activity
.hidden-xs
=
render
"events/event_last_push"
,
event:
@last_push
=
render
"events/event_last_push"
,
event:
@last_push
-
if
current_user
-
if
current_user
...
@@ -10,6 +20,15 @@
...
@@ -10,6 +20,15 @@
=
render
'shared/event_filter'
=
render
'shared/event_filter'
%hr
%hr
.content_list
.content_list
=
spinner
=
spinner
-
if
readme
=
@repository
.
readme
.tab-pane
#tab-readme
%article
.readme-holder
#README
=
link_to
namespace_project_blob_path
(
@project
.
namespace
,
@project
,
tree_join
(
@repository
.
root_ref
,
readme
.
name
))
do
%h4
.readme-file-title
%i
.fa.fa-file
=
readme
.
name
.wiki
=
render_readme
(
readme
)
app/views/projects/show.html.haml
View file @
3ce0557a
...
@@ -7,50 +7,30 @@
...
@@ -7,50 +7,30 @@
=
render
'shared/no_password'
=
render
'shared/no_password'
=
render
"home_panel"
=
render
"home_panel"
%ul
.nav.nav-tabs
-
if
@repository
.
changelog
%li
.active
=
link_to
'#tab-activity'
,
'data-toggle'
=>
'tab'
do
Activity
-
if
@repository
.
readme
%li
=
link_to
'#tab-readme'
,
'data-toggle'
=>
'tab'
do
Readme
-
if
@repository
.
changelog
%li
.hidden-xs
%li
.hidden-xs
=
link_to
changelog_url
(
@project
)
do
=
link_to
changelog_url
(
@project
)
do
Changelog
Changelog
-
if
@repository
.
contribution_guide
-
if
@repository
.
contribution_guide
%li
.hidden-xs
%li
.hidden-xs
=
link_to
contribution_guide_url
(
@project
)
do
=
link_to
contribution_guide_url
(
@project
)
do
Contribution guide
Contribution guide
-
if
@repository
.
license
-
if
@repository
.
license
%li
%li
=
link_to
license_url
(
@project
)
do
=
link_to
license_url
(
@project
)
do
License
License
.project-home-links
.project-home-links
-
unless
@project
.
empty_repo?
-
unless
@project
.
empty_repo?
=
link_to
pluralize
(
number_with_delimiter
(
@repository
.
commit_count
),
'commit'
),
namespace_project_commits_path
(
@project
.
namespace
,
@project
,
@ref
||
@repository
.
root_ref
)
=
link_to
pluralize
(
number_with_delimiter
(
@repository
.
commit_count
),
'commit'
),
namespace_project_commits_path
(
@project
.
namespace
,
@project
,
@ref
||
@repository
.
root_ref
)
=
link_to
pluralize
(
number_with_delimiter
(
@repository
.
branch_names
.
count
),
'branch'
),
namespace_project_branches_path
(
@project
.
namespace
,
@project
)
=
link_to
pluralize
(
number_with_delimiter
(
@repository
.
branch_names
.
count
),
'branch'
),
namespace_project_branches_path
(
@project
.
namespace
,
@project
)
=
link_to
pluralize
(
number_with_delimiter
(
@repository
.
tag_names
.
count
),
'tag'
),
namespace_project_tags_path
(
@project
.
namespace
,
@project
)
=
link_to
pluralize
(
number_with_delimiter
(
@repository
.
tag_names
.
count
),
'tag'
),
namespace_project_tags_path
(
@project
.
namespace
,
@project
)
%span
.light.prepend-left-20
=
repository_size
%span
.light.prepend-left-20
=
repository_size
.tab-content
=
render
'shared/show_aside'
.tab-pane.active
#tab-activity
=
render
'shared/show_aside'
.row
.row
%section
.col-md-9
%section
.col-md-8
=
render
'section'
=
render
'section'
%aside
.col-md-3
.project-side
%aside
.col-md-4
.project-side
=
render
'aside'
=
render
'aside'
-
if
readme
=
@repository
.
readme
.tab-pane
#tab-readme
%article
.readme-holder
#README
=
link_to
namespace_project_blob_path
(
@project
.
namespace
,
@project
,
tree_join
(
@repository
.
root_ref
,
readme
.
name
))
do
%h4
.readme-file-title
%i
.fa.fa-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