diff --git a/app/assets/stylesheets/design/main.scss b/app/assets/stylesheets/design/main.scss index a2f7c04d3..2bd3f3bc6 100644 --- a/app/assets/stylesheets/design/main.scss +++ b/app/assets/stylesheets/design/main.scss @@ -2365,3 +2365,44 @@ table.tablesorter.width565 { article h3 a { font-size: 14px; } + +/*Wiki*/ + +div#wiki-content div.wrap { + width: 100%; + text-align: left; + border: none; + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; + background: #FFF; + margin-top: 20px; +} + +div#wiki-content div#wiki-body { + float: left; + width: 410px; + margin: 0px 0px 20px; +} + +div#wiki-content div#wiki-rightbar { + float: right; + width: 170px; +} + +div#wiki-content div#wiki-footer { + clear: both; + margin: 20px 0px; +} + +div#wiki-content div#wiki-rightbar, div#wiki-content div#wiki-footer { + background-color: #f7f7f7; + border: 1px solid #DDDDDD; + border-radius: 3px; + line-height: 1.5em; + padding: 10px 20px; +} + +div#gollum-footer { + color: #727272; +} diff --git a/app/views/wiki/_page.html.haml b/app/views/wiki/_page.html.haml index cb200c328..810832e9e 100644 --- a/app/views/wiki/_page.html.haml +++ b/app/views/wiki/_page.html.haml @@ -7,6 +7,7 @@ - if has_footer? #wiki-footer{:class => "gollum-#{footer_format}-content"} #footer-content= raw footer_content +.both #gollum-footer %p#last-edit = t("wiki.last_edited_by") diff --git a/app/views/wiki/edit.html.haml b/app/views/wiki/edit.html.haml index ae0745da1..e73511a0a 100644 --- a/app/views/wiki/edit.html.haml +++ b/app/views/wiki/edit.html.haml @@ -1,18 +1,14 @@ = render 'gollum_includes' / = render 'project_short' = render 'projects/submenu' - -%h3.wiki - = t("wiki.editing_page") - %strong= @page.name +.left + %h3 + = t("wiki.editing_page") + %strong= @page.name - if can? :read, @project - .r= link_to t("wiki.view_page"), view_path(@project, escaped_name), :class => 'action-view-page button width100' - .r= link_to t("wiki.page_history"), history_project_wiki_path(@project, escaped_name), :class => 'aciton-view-history button width100' - -%br -%br -%br - + .r= link_to t("wiki.view_page"), view_path(@project, escaped_name), :class => 'action-view-page button' + .r= link_to t("wiki.page_history"), history_project_wiki_path(@project, escaped_name), :class => 'aciton-view-history button' +.both #wiki-content= render "editor" :javascript diff --git a/app/views/wiki/show.html.haml b/app/views/wiki/show.html.haml index a3d93ccb8..e8c83b2ba 100644 --- a/app/views/wiki/show.html.haml +++ b/app/views/wiki/show.html.haml @@ -1,23 +1,19 @@ / = render 'gollum_includes' / = render 'project_short' = render 'projects/submenu' - -%h3.wiki - = @page.name - = "(#{t("wiki.preview")})" if action_name == 'preview' +.left + %h3 + = @page.name + = "(#{t("wiki.preview")})" if action_name == 'preview' - unless action_name == 'preview' .r - = link_to t("wiki.page_history"), history_project_wiki_path(@project, escaped_name), :class => 'button width100' + = link_to t("wiki.page_history"), history_project_wiki_path(@project, escaped_name), :class => 'button' .r - if @editable - = link_to t("wiki.edit_page"), edit_project_wiki_path(@project, escaped_name), :class => "button width100" + = link_to t("wiki.edit_page"), edit_project_wiki_path(@project, escaped_name), :class => 'button' .r - if can? :write, @project - = link_to t("wiki.new_page"), '#', :'data-url' => project_wiki_index_path(@project), :id => 'minibutton-new-page', :class => 'button width100' - -%br -%br -%br + = link_to t("wiki.new_page"), '#', :'data-url' => project_wiki_index_path(@project), :id => 'minibutton-new-page', :class => 'button' .both / = render 'searchbar' = render "page" diff --git a/doc/design/styles/main.css b/doc/design/styles/main.css index 7e3ed0eb5..dc22a7796 100644 --- a/doc/design/styles/main.css +++ b/doc/design/styles/main.css @@ -2368,4 +2368,46 @@ table.tablesorter.width565 { article h3 a { font-size: 14px; +} + + +/*Wiki*/ + +div#wiki-content div.wrap { + width: 100%; + text-align: left; + border: none; + -webkit-box-shadow: none; + -moz-box-shadow: none; + box-shadow: none; + background: #FFF; + margin-top: 20px; +} + +div#wiki-content div#wiki-body { + float: left; + width: 410px; + margin: 0px 0px 20px; +} + +div#wiki-content div#wiki-rightbar { + float: right; + width: 170px; +} + +div#wiki-content div#wiki-footer { + clear: both; + margin: 20px 0px; +} + +div#wiki-content div#wiki-rightbar, div#wiki-content div#wiki-footer { + background-color: #f7f7f7; + border: 1px solid #DDDDDD; + border-radius: 3px; + line-height: 1.5em; + padding: 10px 20px; +} + +div#gollum-footer { + color: #727272; } \ No newline at end of file