Use wiki tab for wiki, wall, snippets
This commit is contained in:
parent
39bbdc468f
commit
35ad4fe7db
10 changed files with 87 additions and 111 deletions
|
@ -53,12 +53,6 @@ $ ->
|
|||
$('.trigger-submit').on 'change', ->
|
||||
$(@).parents('form').submit()
|
||||
|
||||
# Wiki resizer
|
||||
$('.wiki-fullscreen').on 'click', ->
|
||||
$('.writeboards-menu').toggleClass('hide')
|
||||
$('.writeboards-content').toggleClass('span9').toggleClass('span12')
|
||||
|
||||
|
||||
# Flash
|
||||
if (flash = $(".flash-container")).length > 0
|
||||
flash.click -> $(@).fadeOut()
|
||||
|
|
|
@ -80,7 +80,7 @@ module TabHelper
|
|||
end
|
||||
end
|
||||
|
||||
def project_writeboards_tab_class
|
||||
def project_wiki_tab_class
|
||||
[:files, :wall].each do |action|
|
||||
return "active" if current_page?(controller: "projects", action: action, id: @project)
|
||||
end
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
Merge Requests
|
||||
%span.count.merge_counter= @project.merge_requests.opened.count
|
||||
|
||||
= nav_link(html_options: {class: "#{project_writeboards_tab_class}"}) do
|
||||
= nav_link(html_options: {class: "#{project_wiki_tab_class}"}) do
|
||||
= link_to 'Wiki', project_wiki_path(@project, :index)
|
||||
|
||||
- if can? current_user, :admin_project, @project
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
.row
|
||||
.span3
|
||||
= render 'writeboards/nav'
|
||||
.span9
|
||||
= render 'wikis/nav'
|
||||
- unless @notes.empty?
|
||||
%table
|
||||
%thead
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
.row
|
||||
.span3
|
||||
= render 'writeboards/nav'
|
||||
.span9
|
||||
= render 'wikis/nav'
|
||||
%div.wall_page
|
||||
= render "notes/reversed_notes_with_form"
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
.row
|
||||
.span3
|
||||
= render 'writeboards/nav'
|
||||
.span9
|
||||
= render 'wikis/nav'
|
||||
%h3.page_title
|
||||
Snippets
|
||||
%small share code pastes with others out of git repository
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
%ul.nav.nav-pills.nav-stacked
|
||||
%ul.nav.nav-tabs
|
||||
- if @project.wiki_enabled
|
||||
= nav_link(controller: 'wikis') do
|
||||
= link_to 'Wiki', project_wiki_path(@project, :index)
|
|
@ -1,7 +1,4 @@
|
|||
.row
|
||||
.span3
|
||||
= render 'writeboards/nav'
|
||||
.span9
|
||||
= render 'wikis/nav'
|
||||
%h3.page_title All Pages
|
||||
%br
|
||||
%table
|
||||
|
|
|
@ -1,7 +1,4 @@
|
|||
.row
|
||||
.span3.writeboards-menu
|
||||
= render 'writeboards/nav'
|
||||
.span9.writeboards-content
|
||||
= render 'wikis/nav'
|
||||
- if @wiki != @most_recent_wiki
|
||||
.alert
|
||||
This is an old version of this page.
|
||||
|
@ -9,9 +6,6 @@
|
|||
|
||||
.file_holder
|
||||
.file_title
|
||||
= link_to '#', class: 'wiki-fullscreen' do
|
||||
%i.icon-resize-horizontal
|
||||
|
||||
= @wiki.title
|
||||
%span.options
|
||||
= link_to pages_project_wikis_path(@project), class: "btn btn-tiny grouped" do
|
||||
|
|
|
@ -218,7 +218,7 @@ describe "Gitlab Flavored Markdown" do
|
|||
end
|
||||
|
||||
it "should NOT render title in wikis#show" do
|
||||
within(".content h3") do # page title
|
||||
within(".content .file_title") do # page title
|
||||
page.should have_content("Circumvent ##{issue.id}")
|
||||
page.should_not have_link("##{issue.id}")
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue