BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
c13f420b
Commit
c13f420b
authored
Jan 06, 2015
by
yglukhov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
First entry in wiki history leads to newest revision.
parent
3103e567
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
projects_helper.rb
app/helpers/projects_helper.rb
+5
-0
history.html.haml
app/views/projects/wikis/history.html.haml
+3
-2
No files found.
app/helpers/projects_helper.rb
View file @
c13f420b
...
...
@@ -237,4 +237,9 @@ module ProjectsHelper
result
.
password
=
'*****'
if
result
.
password
.
present?
result
end
def
project_wiki_path_with_version
(
proj
,
page
,
version
,
is_newest
)
url_params
=
is_newest
?
{}
:
{
version_id:
version
}
project_wiki_path
(
proj
,
page
,
url_params
)
end
end
app/views/projects/wikis/history.html.haml
View file @
c13f420b
...
...
@@ -12,11 +12,12 @@
%th
Last updated
%th
Format
%tbody
-
@page
.
versions
.
each
do
|
version
|
-
@page
.
versions
.
each
_with_index
do
|
version
,
index
|
-
commit
=
version
%tr
%td
=
link_to
project_wiki_path
(
@project
,
@page
,
version_id:
commit
.
id
)
do
=
link_to
project_wiki_path_with_version
(
@project
,
@page
,
commit
.
id
,
index
==
0
)
do
=
truncate_sha
(
commit
.
id
)
%td
=
commit
.
author
.
name
...
...
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