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
5adb1128
Commit
5adb1128
authored
Mar 17, 2015
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show changelog link even if no version is known.
parent
d328b416
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
app/views/projects/show.html.haml
app/views/projects/show.html.haml
+7
-3
No files found.
app/views/projects/show.html.haml
View file @
5adb1128
...
...
@@ -50,13 +50,17 @@
=
link_to
namespace_project_compare_index_path
(
@project
.
namespace
,
@project
,
from:
@repository
.
root_ref
,
to:
@ref
||
@repository
.
root_ref
),
class:
'btn btn-block'
do
Compare code
-
if
@repository
.
version
-
version
=
@repository
.
version
-
detail_file
=
@repository
.
changelog
.
try
(
:name
)
||
version
.
name
-
changelog
=
@repository
.
changelog
-
if
version
-
detail_file
=
changelog
.
try
(
:name
)
||
version
.
name
=
link_to
namespace_project_blob_path
(
@project
.
namespace
,
@project
,
tree_join
(
@repository
.
root_ref
,
detail_file
)),
class:
'btn btn-block'
do
Version:
%span
.count
=
@repository
.
blob_by_oid
(
version
.
id
).
data
-
elsif
changelog
=
link_to
namespace_project_blob_path
(
@project
.
namespace
,
@project
,
tree_join
(
@repository
.
root_ref
,
changelog
.
name
)),
class:
'btn btn-block'
do
View changelog
.prepend-top-10
%p
...
...
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