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
Léo-Paul Géneau
gitlab-ce
Commits
b9ff0c79
Commit
b9ff0c79
authored
Aug 30, 2012
by
randx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed filters to readable one. Styled some stuff
parent
4a6596af
Changes
15
Show whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
96 additions
and
48 deletions
+96
-48
app/assets/javascripts/projects.js
app/assets/javascripts/projects.js
+3
-1
app/assets/stylesheets/common.scss
app/assets/stylesheets/common.scss
+2
-2
app/assets/stylesheets/sections/projects.scss
app/assets/stylesheets/sections/projects.scss
+11
-0
app/contexts/merge_requests_load.rb
app/contexts/merge_requests_load.rb
+4
-4
app/controllers/issues_controller.rb
app/controllers/issues_controller.rb
+4
-4
app/controllers/milestones_controller.rb
app/controllers/milestones_controller.rb
+2
-2
app/views/admin/projects/_form.html.haml
app/views/admin/projects/_form.html.haml
+7
-5
app/views/admin/projects/_new_form.html.haml
app/views/admin/projects/_new_form.html.haml
+29
-0
app/views/admin/projects/new.html.haml
app/views/admin/projects/new.html.haml
+12
-3
app/views/merge_requests/index.html.haml
app/views/merge_requests/index.html.haml
+8
-8
app/views/milestones/_form.html.haml
app/views/milestones/_form.html.haml
+4
-9
app/views/milestones/index.html.haml
app/views/milestones/index.html.haml
+4
-4
app/views/projects/_new_form.html.haml
app/views/projects/_new_form.html.haml
+1
-1
app/views/projects/new.html.haml
app/views/projects/new.html.haml
+3
-3
app/views/wikis/_form.html.haml
app/views/wikis/_form.html.haml
+2
-2
No files found.
app/assets/javascripts/projects.js
View file @
b9ff0c79
...
...
@@ -7,8 +7,10 @@ function Projects() {
$
(
'
.new_project, .edit_project
'
).
live
(
'
ajax:before
'
,
function
()
{
$
(
'
.project_new_holder, .project_edit_holder
'
).
hide
();
$
(
'
.
ajax_
loader
'
).
show
();
$
(
'
.
save-project-
loader
'
).
show
();
});
$
(
'
form #project_default_branch
'
).
chosen
();
disableButtonIfEmtpyField
(
"
#project_name
"
,
"
.project-submit
"
)
}
app/assets/stylesheets/common.scss
View file @
b9ff0c79
...
...
@@ -165,11 +165,11 @@ span.update-author {
background-color
:
#999
;
&
.pushed
{
background-color
:
#
3A87A
D
;
background-color
:
#
4A97B
D
;
}
&
.opened
{
background-color
:
#46
8
847
;
background-color
:
#46
9
847
;
}
&
.closed
{
...
...
app/assets/stylesheets/sections/projects.scss
View file @
b9ff0c79
...
...
@@ -79,3 +79,14 @@
border
:
1px
solid
#BBB
;
}
}
.save-project-loader
{
img
{
margin-top
:
50px
;
margin-bottom
:
50px
;
}
h3
{
@extend
.page_title
;
}
}
app/contexts/merge_requests_load.rb
View file @
b9ff0c79
class
MergeRequestsLoad
<
BaseContext
def
execute
type
=
params
[
:f
]
.
to_i
type
=
params
[
:f
]
merge_requests
=
project
.
merge_requests
merge_requests
=
case
type
when
1
then
merge_requests
when
2
then
merge_requests
.
closed
when
3
then
merge_requests
.
opened
.
assigned
(
current_user
)
when
'all'
then
merge_requests
when
'closed'
then
merge_requests
.
closed
when
'assigned-to-me'
then
merge_requests
.
opened
.
assigned
(
current_user
)
else
merge_requests
.
opened
end
.
page
(
params
[
:page
]).
per
(
20
)
...
...
app/controllers/issues_controller.rb
View file @
b9ff0c79
...
...
@@ -168,10 +168,10 @@ class IssuesController < ApplicationController
def
issues_filter
{
all:
"
1
"
,
closed:
"
2
"
,
to_me:
"
3
"
,
open:
"
0
"
all:
"
all
"
,
closed:
"
closed
"
,
to_me:
"
assigned-to-me
"
,
open:
"
open
"
}
end
end
app/controllers/milestones_controller.rb
View file @
b9ff0c79
...
...
@@ -17,8 +17,8 @@ class MilestonesController < ApplicationController
respond_to
:html
def
index
@milestones
=
case
params
[
:f
]
.
to_i
when
1
;
@project
.
milestones
@milestones
=
case
params
[
:f
]
when
'all'
;
@project
.
milestones
else
@project
.
milestones
.
active
end
...
...
app/views/admin/projects/_form.html.haml
View file @
b9ff0c79
...
...
@@ -13,8 +13,8 @@
=
f
.
submit
project
.
new_record?
?
'Create project'
:
'Save Project'
,
class:
"btn primary"
%hr
.a
lert.alert-info
%h
5
Advanced settings:
.a
dv_settings
%h
6
Advanced settings:
.clearfix
=
f
.
label
:path
do
Git Clone
...
...
@@ -42,8 +42,9 @@
.input
=
f
.
select
(
:default_branch
,
project
.
heads
.
map
(
&
:name
),
{},
style:
"width:210px;"
)
-
unless
project
.
new_record?
.alert.alert-info
%h5
Features:
%hr
.adv_settings
%h6
Features:
.clearfix
=
f
.
label
:issues_enabled
,
"Issues"
...
...
@@ -63,7 +64,8 @@
-
unless
project
.
new_record?
.actions
=
f
.
submit
'Save Project'
,
class:
"btn primary"
=
f
.
submit
'Save Project'
,
class:
"btn save-btn"
=
link_to
'Cancel'
,
admin_projects_path
,
class:
"btn cancel-btn"
...
...
app/views/admin/projects/_new_form.html.haml
0 → 100644
View file @
b9ff0c79
=
form_for
[
:admin
,
@admin_project
]
do
|
f
|
-
if
@admin_project
.
errors
.
any?
.alert-message.block-message.error
%span
=
@admin_project
.
errors
.
full_messages
.
first
.clearfix.project_name_holder
=
f
.
label
:name
do
Project name is
.input
=
f
.
text_field
:name
,
placeholder:
"Example Project"
,
class:
"xxlarge"
=
f
.
submit
'Create project'
,
class:
"btn primary project-submit"
%hr
%div
.adv_settings
%h6
Advanced settings:
.clearfix
=
f
.
label
:path
do
Git Clone
.input
.input-prepend
%span
.add-on
=
Gitlab
.
config
.
ssh_path
=
f
.
text_field
:path
,
placeholder:
"example_project"
,
disabled:
!
@admin_project
.
new_record?
%span
.add-on
=
".git"
.clearfix
=
f
.
label
:code
do
URL
.input
.input-prepend
%span
.add-on
=
web_app_url
=
f
.
text_field
:code
,
placeholder:
"example"
app/views/admin/projects/new.html.haml
View file @
b9ff0c79
%h3
.page_title
New project
%hr
=
render
'form'
,
project:
@admin_project
.project_new_holder
%h3
.page_title
New Project
%hr
=
render
'new_form'
%div
.save-project-loader.hide
%center
=
image_tag
"ajax_loader.gif"
%h3
Creating project
&
repository. Please wait a few minutes
:javascript
$
(
function
(){
new
Projects
();
});
app/views/merge_requests/index.html.haml
View file @
b9ff0c79
...
...
@@ -10,17 +10,17 @@
.ui-box
.title
%ul
.nav.nav-pills
%li
{
class:
(
"active"
if
(
params
[
:f
]
==
"0"
||
!
params
[
:f
]))}
=
link_to
project_merge_requests_path
(
@project
,
f:
0
)
do
%li
{
class:
(
"active"
if
(
params
[
:f
]
==
'open'
||
!
params
[
:f
]))}
=
link_to
project_merge_requests_path
(
@project
,
f:
'open'
)
do
Open
%li
{
class:
(
"active"
if
params
[
:f
]
==
"
2
"
)}
=
link_to
project_merge_requests_path
(
@project
,
f:
2
)
do
%li
{
class:
(
"active"
if
params
[
:f
]
==
"
closed
"
)}
=
link_to
project_merge_requests_path
(
@project
,
f:
"closed"
)
do
Closed
%li
{
class:
(
"active"
if
params
[
:f
]
==
"3"
)}
=
link_to
project_merge_requests_path
(
@project
,
f:
3
)
do
%li
{
class:
(
"active"
if
params
[
:f
]
==
'assigned-to-me'
)}
=
link_to
project_merge_requests_path
(
@project
,
f:
'assigned-to-me'
)
do
To Me
%li
{
class:
(
"active"
if
params
[
:f
]
==
"1"
)}
=
link_to
project_merge_requests_path
(
@project
,
f:
1
)
do
%li
{
class:
(
"active"
if
params
[
:f
]
==
'all'
)}
=
link_to
project_merge_requests_path
(
@project
,
f:
'all'
)
do
All
%ul
.unstyled
...
...
app/views/milestones/_form.html.haml
View file @
b9ff0c79
...
...
@@ -32,17 +32,12 @@
.form-actions
-
if
@milestone
.
new_record?
=
f
.
submit
'Create milestone'
,
class:
"primary btn"
=
f
.
submit
'Create milestone'
,
class:
"save-btn btn"
=
link_to
"Cancel"
,
project_milestones_path
(
@project
),
class:
"btn cancel-btn"
-
else
=
f
.
submit
'Save changes'
,
class:
"primary btn"
=
f
.
submit
'Save changes'
,
class:
"save-btn btn"
=
link_to
"Cancel"
,
project_milestone_path
(
@project
,
@milestone
),
class:
"btn cancel-btn"
-
if
request
.
xhr?
=
link_to
"Cancel"
,
"#back"
,
onclick:
"backToIssues();"
,
class:
"btn"
-
else
-
if
@milestone
.
new_record?
=
link_to
"Cancel"
,
project_milestones_path
(
@project
),
class:
"btn"
-
else
=
link_to
"Cancel"
,
project_milestone_path
(
@project
,
@milestone
),
class:
"btn"
:javascript
$
(
function
()
{
...
...
app/views/milestones/index.html.haml
View file @
b9ff0c79
...
...
@@ -8,11 +8,11 @@
%div
.ui-box
.title
%ul
.nav.nav-pills
%li
{
class:
(
"active"
if
(
params
[
:f
]
==
"
0
"
||
!
params
[
:f
]))}
=
link_to
project_milestones_path
(
@project
,
f:
0
)
do
%li
{
class:
(
"active"
if
(
params
[
:f
]
==
"
active
"
||
!
params
[
:f
]))}
=
link_to
project_milestones_path
(
@project
,
f:
"active"
)
do
Active
%li
{
class:
(
"active"
if
params
[
:f
]
==
"
1
"
)}
=
link_to
project_milestones_path
(
@project
,
f:
1
)
do
%li
{
class:
(
"active"
if
params
[
:f
]
==
"
all
"
)}
=
link_to
project_milestones_path
(
@project
,
f:
"all"
)
do
All
%ul
.unstyled
...
...
app/views/projects/_new_form.html.haml
View file @
b9ff0c79
...
...
@@ -7,7 +7,7 @@
Project name is
.input
=
f
.
text_field
:name
,
placeholder:
"Example Project"
,
class:
"xxlarge"
=
f
.
submit
'Create project'
,
class:
"btn primary"
=
f
.
submit
'Create project'
,
class:
"btn primary
project-submit
"
%hr
%div
.adv_settings
...
...
app/views/projects/new.html.haml
View file @
b9ff0c79
...
...
@@ -3,10 +3,10 @@
New Project
%hr
=
render
'new_form'
%div
.
ajax_
loader.hide
%div
.
save-project-
loader.hide
%center
%div
.padded
=
image_tag
"ajax_loader.gif"
%h3
.prepend-top
Creating project
&
repository. Please wait a few minutes
=
image_tag
"ajax_loader.gif"
%h3
Creating project
&
repository. Please wait a few minutes
:javascript
$
(
function
(){
new
Projects
();
});
app/views/wikis/_form.html.haml
View file @
b9ff0c79
...
...
@@ -23,5 +23,5 @@
=
f
.
label
:content
.input
=
f
.
text_area
:content
,
class:
'span8'
.actions
=
f
.
submit
'Save'
,
class:
"
primary
btn"
=
link_to
"Cancel"
,
project_wiki_path
(
@project
,
:index
),
class:
"btn"
=
f
.
submit
'Save'
,
class:
"
save-btn
btn"
=
link_to
"Cancel"
,
project_wiki_path
(
@project
,
:index
),
class:
"btn
cancel-btn
"
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