debian-mirror-gitlab/app/views/projects/wikis/history.html.haml

32 lines
880 B
Text
Raw Normal View History

2015-09-11 14:41:01 +05:30
- page_title "History", @page.title, "Wiki"
2014-09-02 18:07:02 +05:30
= render 'nav'
%h3.page-title
%span.light History for
2015-04-26 12:48:37 +05:30
= link_to @page.title, namespace_project_wiki_path(@project.namespace, @project, @page)
2014-09-02 18:07:02 +05:30
%table.table
%thead
%tr
%th Page version
%th Author
%th Commit Message
%th Last updated
%th Format
%tbody
2015-04-26 12:48:37 +05:30
- @page.versions.each_with_index do |version, index|
2014-09-02 18:07:02 +05:30
- commit = version
%tr
%td
2015-04-26 12:48:37 +05:30
= link_to project_wiki_path_with_version(@project, @page,
commit.id, index == 0) do
= truncate_sha(commit.id)
2014-09-02 18:07:02 +05:30
%td
2015-04-26 12:48:37 +05:30
= commit.author.name
2014-09-02 18:07:02 +05:30
%td
2015-04-26 12:48:37 +05:30
= commit.message
2014-09-02 18:07:02 +05:30
%td
2015-04-26 12:48:37 +05:30
#{time_ago_with_tooltip(version.authored_date)}
2014-09-02 18:07:02 +05:30
%td
%strong
= @page.page.wiki.page(@page.page.name, commit.id).try(:format)