Commit 14c97237 authored by randx's avatar randx

Styled wiki area. fixed commit feed feature

parent 501ca8e6
%h3 Versions %h3.page_title Versions
%table %br
%table.admin-table
%thead %thead
%tr %tr
%th # %th #
......
...@@ -5,9 +5,11 @@ ...@@ -5,9 +5,11 @@
= link_to history_project_wiki_path(@project, @wiki), :class => "btn small grouped" do = link_to history_project_wiki_path(@project, @wiki), :class => "btn small grouped" do
History History
= link_to edit_project_wiki_path(@project, @wiki), :class => "btn small grouped" do = link_to edit_project_wiki_path(@project, @wiki), :class => "btn small grouped" do
%i.icon-edit
Edit Edit
%hr %br
.wiki_content .file_holder
.file_content.wiki
= preserve do = preserve do
= markdown @wiki.content = markdown @wiki.content
...@@ -16,4 +18,5 @@ ...@@ -16,4 +18,5 @@
= link_to project_wiki_path(@project, @wiki), :confirm => "Are you sure you want to delete this page?", :method => :delete do = link_to project_wiki_path(@project, @wiki), :confirm => "Are you sure you want to delete this page?", :method => :delete do
Delete this page Delete this page
%hr
.wiki_notes#notes= render "notes/notes", :tid => @wiki.id, :tt => "wiki" .wiki_notes#notes= render "notes/notes", :tid => @wiki.id, :tt => "wiki"
...@@ -16,11 +16,11 @@ Given /^I click atom feed link$/ do ...@@ -16,11 +16,11 @@ Given /^I click atom feed link$/ do
end end
Then /^I see commits atom feed$/ do Then /^I see commits atom feed$/ do
commit = @project.commit commit = CommitDecorator.decorate(@project.commit)
page.response_headers['Content-Type'].should have_content("application/atom+xml") page.response_headers['Content-Type'].should have_content("application/atom+xml")
page.body.should have_selector("title", :text => "Recent commits to #{@project.name}") page.body.should have_selector("title", :text => "Recent commits to #{@project.name}")
page.body.should have_selector("author email", :text => commit.author_email) page.body.should have_selector("author email", :text => commit.author_email)
page.body.should have_selector("entry summary", :text => commit.message) page.body.should have_selector("entry summary", :text => commit.description)
end end
Given /^I click on commit link$/ do Given /^I click on commit link$/ do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment