summaryrefslogtreecommitdiff
path: root/app/views/projects/wikis/pages.html.haml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-23 19:47:22 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-23 19:47:22 +0300
commit2ed7cbfba4ff3c6a4cf3e72515a0375544998de0 (patch)
treeae6d7530745c80633cd993c99f7820e1452f3e1b /app/views/projects/wikis/pages.html.haml
parent95791316f4037273af7b747ce1851d5f4e46933f (diff)
downloadgitlab-ce-2ed7cbfba4ff3c6a4cf3e72515a0375544998de0.tar.gz
Move projects controllers/views in Projects module
Diffstat (limited to 'app/views/projects/wikis/pages.html.haml')
-rw-r--r--app/views/projects/wikis/pages.html.haml25
1 files changed, 25 insertions, 0 deletions
diff --git a/app/views/projects/wikis/pages.html.haml b/app/views/projects/wikis/pages.html.haml
new file mode 100644
index 00000000000..07e942ec62f
--- /dev/null
+++ b/app/views/projects/wikis/pages.html.haml
@@ -0,0 +1,25 @@
+= render 'nav'
+%h3.page_title
+ All Pages
+ = render 'main_links'
+%br
+%table
+ %thead
+ %tr
+ %th Title
+ %th Format
+ %th Last updated
+ %th Updated by
+ %tbody
+ - @wiki_pages.each do |wiki_page|
+ %tr
+ %td
+ %strong= link_to wiki_page.title.titleize, project_wiki_path(@project, wiki_page)
+ %td
+ %strong= wiki_page.format
+ %td
+ = wiki_page.created_at.to_s(:short) do
+ (#{time_ago_in_words(wiki_page.created_at)}
+ ago)
+ %td
+ = commit_author_link(wiki_page.version, avatar: true, size: 24)