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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
iv
gitlab-ce
Commits
c27105f8
Commit
c27105f8
authored
Jul 26, 2012
by
randx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed dashboard loader, fixed 404 for reporter on empty wiki page.
Styled Wiki edit page
parent
14c97237
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
28 additions
and
27 deletions
+28
-27
app/assets/javascripts/pager.js
app/assets/javascripts/pager.js
+0
-1
app/controllers/wikis_controller.rb
app/controllers/wikis_controller.rb
+7
-9
app/views/help/permissions.html.haml
app/views/help/permissions.html.haml
+0
-2
app/views/projects/files.html.haml
app/views/projects/files.html.haml
+1
-1
app/views/wikis/_form.html.haml
app/views/wikis/_form.html.haml
+15
-13
app/views/wikis/edit.html.haml
app/views/wikis/edit.html.haml
+1
-1
app/views/wikis/empty.html.haml
app/views/wikis/empty.html.haml
+4
-0
No files found.
app/assets/javascripts/pager.js
View file @
c27105f8
...
@@ -8,7 +8,6 @@ var Pager = {
...
@@ -8,7 +8,6 @@ var Pager = {
this
.
limit
=
limit
;
this
.
limit
=
limit
;
this
.
offset
=
limit
;
this
.
offset
=
limit
;
this
.
initLoadMore
();
this
.
initLoadMore
();
$
(
'
.loading
'
).
show
();
},
},
getOld
:
getOld
:
...
...
app/controllers/wikis_controller.rb
View file @
c27105f8
...
@@ -13,18 +13,16 @@ class WikisController < ApplicationController
...
@@ -13,18 +13,16 @@ class WikisController < ApplicationController
@wiki
=
@project
.
wikis
.
where
(
:slug
=>
params
[
:id
]).
order
(
"created_at"
).
last
@wiki
=
@project
.
wikis
.
where
(
:slug
=>
params
[
:id
]).
order
(
"created_at"
).
last
end
end
unless
@wiki
return
render_404
unless
can?
(
current_user
,
:write_wiki
,
@project
)
end
@note
=
@project
.
notes
.
new
(
:noteable
=>
@wiki
)
@note
=
@project
.
notes
.
new
(
:noteable
=>
@wiki
)
respond_to
do
|
format
|
if
@wiki
if
@wiki
format
.
html
render
'show'
else
else
if
can?
(
current_user
,
:write_wiki
,
@project
)
@wiki
=
@project
.
wikis
.
new
(
:slug
=>
params
[
:id
])
@wiki
=
@project
.
wikis
.
new
(
:slug
=>
params
[
:id
])
format
.
html
{
render
"edit"
}
render
'edit'
else
render
'empty'
end
end
end
end
end
end
...
...
app/views/help/permissions.html.haml
View file @
c27105f8
...
@@ -38,7 +38,6 @@
...
@@ -38,7 +38,6 @@
%li
Push to non-protected branches
%li
Push to non-protected branches
%li
Remove non-protected branches
%li
Remove non-protected branches
%li
Add tags
%li
Add tags
%li
Create new merge request
%li
Write a wiki
%li
Write a wiki
.ui-box.span3
.ui-box.span3
...
@@ -55,7 +54,6 @@
...
@@ -55,7 +54,6 @@
%li
Push to non-protected branches
%li
Push to non-protected branches
%li
Remove non-protected branches
%li
Remove non-protected branches
%li
Add tags
%li
Add tags
%li
Create new merge request
%li
Write a wiki
%li
Write a wiki
%li
Add new team members
%li
Add new team members
%li
Push to protected branches
%li
Push to protected branches
...
...
app/views/projects/files.html.haml
View file @
c27105f8
...
@@ -14,6 +14,6 @@
...
@@ -14,6 +14,6 @@
ago
ago
-
else
-
else
.alert-message.block-message
.alert-message.block-message
%
p
All files attached to project wall, issues etc will be displayed here
%
span
All files attached to project wall, issues etc will be displayed here
app/views/wikis/_form.html.haml
View file @
c27105f8
...
@@ -6,19 +6,21 @@
...
@@ -6,19 +6,21 @@
-
@wiki
.
errors
.
full_messages
.
each
do
|
msg
|
-
@wiki
.
errors
.
full_messages
.
each
do
|
msg
|
%li
=
msg
%li
=
msg
.alert-message.block-message.warning
.main_box
%p
.top_box_content
=
f
.
label
:title
.input
=
f
.
text_field
:title
,
:class
=>
'span8'
=
f
.
hidden_field
:slug
.middle_box_content
.input
%span
.cgray
Wiki content is parsed with
#{
link_to
"Markdown"
,
"http://en.wikipedia.org/wiki/Markdown"
}
.
Wiki content is parsed with
#{
link_to
"Markdown"
,
"http://en.wikipedia.org/wiki/Markdown"
}
.
%br
To add link to new page you can just type
To add link to new page you can just type
%code
[Link Title](page-slug)
%code
[Link Title](page-slug)
.clearfix
=
f
.
label
:title
.bottom_box_content
.input
=
f
.
text_field
:title
,
:class
=>
:xxlarge
=
f
.
hidden_field
:slug
.clearfix
=
f
.
label
:content
=
f
.
label
:content
.input
=
f
.
text_area
:content
,
:class
=>
:xxlarge
.input
=
f
.
text_area
:content
,
:class
=>
'span8'
.actions
.actions
=
f
.
submit
'Save'
,
:class
=>
"primary btn"
=
f
.
submit
'Save'
,
:class
=>
"primary btn"
=
link_to
"Cancel"
,
project_wiki_path
(
@project
,
:index
),
:class
=>
"btn"
=
link_to
"Cancel"
,
project_wiki_path
(
@project
,
:index
),
:class
=>
"btn"
app/views/wikis/edit.html.haml
View file @
c27105f8
%h3
Editing page
%h3
.page_title
Editing page
%hr
%hr
=
render
'form'
=
render
'form'
app/views/wikis/empty.html.haml
0 → 100644
View file @
c27105f8
%h3
.page_title
Empty page
%hr
.alert-message.block-message.warning
%span
You are not allowed to create wiki pages
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