diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-03-06 18:35:25 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-03-06 18:35:25 +0000 |
commit | 67b92ae1dfe73934b84a13d43e97fa17ed985153 (patch) | |
tree | 87f78f2191ee45500e4bae5cb916638fe5d6e400 | |
parent | 2a0cdcb631ad691650a36bd209be1a6c55f3e954 (diff) | |
download | redmine-67b92ae1dfe73934b84a13d43e97fa17ed985153.tar.gz redmine-67b92ae1dfe73934b84a13d43e97fa17ed985153.zip |
removed page title when showing a wiki page
git-svn-id: http://redmine.rubyforge.org/svn/branches/work@304 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | wiki/app/controllers/wiki_controller.rb | 1 | ||||
-rw-r--r-- | wiki/app/views/wiki/show.rhtml | 20 | ||||
-rw-r--r-- | wiki/public/stylesheets/application.css | 5 |
3 files changed, 12 insertions, 14 deletions
diff --git a/wiki/app/controllers/wiki_controller.rb b/wiki/app/controllers/wiki_controller.rb index 8b8c00792..23d10c869 100644 --- a/wiki/app/controllers/wiki_controller.rb +++ b/wiki/app/controllers/wiki_controller.rb @@ -44,6 +44,7 @@ class WikiController < ApplicationController @page = @wiki.find_or_new_page(params[:page]) @page.content = WikiContent.new(:page => @page) if @page.new_record? @content = @page.content + @content.text = "h1. #{@page.pretty_title}" if @content.text.empty? @content.comment = nil if request.post? @content.text = params[:content][:text] diff --git a/wiki/app/views/wiki/show.rhtml b/wiki/app/views/wiki/show.rhtml index 4a020cd9b..c1fc7f111 100644 --- a/wiki/app/views/wiki/show.rhtml +++ b/wiki/app/views/wiki/show.rhtml @@ -4,19 +4,17 @@ <%= link_to(l(:label_page_index), {:action => 'special', :page => 'Page_index'}, :class => 'icon icon-index') %>
</div>
-<h2><%=h @page.pretty_title %></h2>
-
<% if @content.version != @page.content.version %>
-<div class="box">
- <div style="float:right;">
- <%= link_to(l(:label_current_version), :action => 'index', :page => @page.title) %> (<%= @page.content.version %>)
- <%= " - " + link_to(('« ' + l(:label_previous)), :action => 'index', :page => @page.title, :version => (@content.version - 1)) if @content.version > 1 %>
- <%= " - " + link_to((l(:label_next) + ' »'), :action => 'index', :page => @page.title, :version => (@content.version + 1)) if @content.version < @page.content.version %>
- </div>
- <%= "<strong>#{l(:label_version)} #{@content.version}</strong> - #{format_time(@content.updated_on)}" %>
- <em>(<%= @content.author ? @content.author.name : "anonyme" %>)</em><br />
+ <p>
+ <%= link_to(('« ' + l(:label_previous)), :action => 'index', :page => @page.title, :version => (@content.version - 1)) + " - " if @content.version > 1 %>
+ <%= "#{l(:label_version)} #{@content.version}/#{@page.content.version}" %> -
+ <%= link_to((l(:label_next) + ' »'), :action => 'index', :page => @page.title, :version => (@content.version + 1)) + " - " if @content.version < @page.content.version %>
+ <%= link_to(l(:label_current_version), :action => 'index', :page => @page.title) %>
+ <br />
+ <em><%= @content.author ? @content.author.name : "anonyme" %>, <%= format_time(@content.updated_on) %> </em><br />
<%=h @content.comment %>
-</div>
+ </p>
+ <hr />
<% end %>
<div class="wiki">
diff --git a/wiki/public/stylesheets/application.css b/wiki/public/stylesheets/application.css index 2abcb61ea..05d0072bc 100644 --- a/wiki/public/stylesheets/application.css +++ b/wiki/public/stylesheets/application.css @@ -185,7 +185,7 @@ border-left: 1px dashed #c0c0c0; }
-#content h2{
+#content h2, #content div.wiki h1 {
display:block;
margin:0 0 16px 0;
font-size:1.7em;
@@ -585,8 +585,7 @@ margin-left: 3px; /***** Wiki sections ****/
#content div.wiki { font-size: 110%}
-#content div.wiki h1, div.wiki h2, div.wiki h3 { font-family: Trebuchet MS,Georgia,"Times New Roman",serif; color:#606060; }
-#content div.wiki h1 { font-size: 1.5em; border-bottom: dotted 1px #c0c0c0;}
+#content div.wiki h2, div.wiki h3 { font-family: Trebuchet MS,Georgia,"Times New Roman",serif; color:#606060; }
#content div.wiki h2 { font-size: 1.4em;}
#content div.wiki h3 { font-size: 1.2em;}
|