Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
112dc875
Commit
112dc875
authored
Mar 18, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feature: wiki -> new page
parent
ae06a0aa
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
34 additions
and
1 deletion
+34
-1
app/views/wikis/_nav.html.haml
app/views/wikis/_nav.html.haml
+8
-0
app/views/wikis/_new.html.haml
app/views/wikis/_new.html.haml
+25
-0
features/project/active_tab.feature
features/project/active_tab.feature
+1
-1
No files found.
app/views/wikis/_nav.html.haml
View file @
112dc875
...
...
@@ -9,3 +9,11 @@
=
link_to
git_access_project_wikis_path
(
@project
)
do
%i
.icon-download-alt
Git Access
-
if
can?
(
current_user
,
:write_wiki
,
@project
)
%li
.pull-right
=
link_to
'#'
,
class:
"add-new-wiki"
do
%i
.icon-plus
New Page
=
render
'wikis/new'
app/views/wikis/_new.html.haml
0 → 100644
View file @
112dc875
%div
#modal-new-wiki
.modal.hide
.modal-header
%a
.close
{
href:
"#"
}
×
%h3
New Wiki Page
.modal-body
=
label_tag
:new_wiki_path
do
%span
Page slug
=
text_field_tag
:new_wiki_path
,
nil
,
placeholder:
'how-to-setup'
,
class:
'input-xlarge'
.modal-footer
=
link_to
'Build'
,
'#'
,
class:
'build-new-wiki btn btn-create'
:javascript
$
(
function
(){
var
modal
=
$
(
'
#modal-new-wiki
'
).
modal
({
modal
:
true
,
show
:
false
});
$
(
'
.add-new-wiki
'
).
bind
(
"
click
"
,
function
(){
modal
.
show
();
});
$
(
'
.build-new-wiki
'
).
bind
(
"
click
"
,
function
(){
location
.
href
=
"
#{
project_wikis_path
(
@project
)
}
/
"
+
$
(
'
#new_wiki_path
'
).
val
();
});
$
(
'
.modal-header .close
'
).
bind
(
"
click
"
,
function
(){
modal
.
hide
();
})
})
features/project/active_tab.feature
View file @
112dc875
...
...
@@ -37,7 +37,7 @@ Feature: Project active tab
Scenario
:
On Project Wall
Given
I visit my project's wall page
Then
the active main tab should be W
iki
Then
the active main tab should be W
all
And
no other main tabs should be active
Scenario
:
On Project Wiki
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment