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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
69ef8140
Commit
69ef8140
authored
Mar 28, 2012
by
randx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UI improved, .main_box css class for show pages
parent
88d9569a
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
94 additions
and
79 deletions
+94
-79
app/assets/stylesheets/common.scss
app/assets/stylesheets/common.scss
+32
-24
app/views/commits/index.html.haml
app/views/commits/index.html.haml
+0
-1
app/views/commits/show.html.haml
app/views/commits/show.html.haml
+5
-4
app/views/deploy_keys/index.html.haml
app/views/deploy_keys/index.html.haml
+1
-1
app/views/help/web_hooks.html.haml
app/views/help/web_hooks.html.haml
+7
-0
app/views/hooks/index.html.haml
app/views/hooks/index.html.haml
+4
-6
app/views/issues/show.html.haml
app/views/issues/show.html.haml
+5
-6
app/views/keys/index.html.haml
app/views/keys/index.html.haml
+1
-1
app/views/merge_requests/show.html.haml
app/views/merge_requests/show.html.haml
+12
-15
app/views/projects/_team.html.haml
app/views/projects/_team.html.haml
+7
-3
app/views/projects/show.html.haml
app/views/projects/show.html.haml
+19
-18
config/routes.rb
config/routes.rb
+1
-0
No files found.
app/assets/stylesheets/common.scss
View file @
69ef8140
...
@@ -1010,15 +1010,16 @@ p.time {
...
@@ -1010,15 +1010,16 @@ p.time {
}
}
}
}
.project_box
,
/**
.issue_box
,
* UI box element
.commit_box
,
* contains top, middle, bottom blocks
.merge_request_box
{
*
@extend
.padded
;
*/
.main_box
{
@extend
.borders
;
@extend
.borders
;
@extend
.prepend-top-20
;
@extend
.prepend-top-20
;
@extend
.append-bottom-20
;
@extend
.append-bottom-20
;
border-width
:
2
px
;
border-width
:
1
px
;
img
{
max-width
:
100%
;
}
img
{
max-width
:
100%
;
}
...
@@ -1027,21 +1028,32 @@ p.time {
...
@@ -1027,21 +1028,32 @@ p.time {
background
:
none
!
important
;
background
:
none
!
important
;
}
}
}
}
}
.project_box
.project_descr
,
.top_box_content
,
.merge_request_box
.middle_area
,
.middle_box_content
,
.issue_box
.middle_area
,
.bottom_box_content
{
.commit_box
.commit_message
{
padding
:
20px
;
margin
:
-20px
;
padding
:
20px
;
pre
{
margin-top
:
10px
;
background
:
none
!
important
;
border-radius
:
0
;
margin
:
0
;
border
:none
;
border
:none
;
font-size
:
12px
;
padding
:
0
;
background-color
:
#f5f5f5
;
}
border
:none
;
}
border-top
:
1px
solid
#eee
;
.middle_box_content
{
border-radius
:
0
;
border
:none
;
font-size
:
12px
;
background-color
:
#f5f5f5
;
border
:none
;
border-top
:
1px
solid
#eee
;
}
.bottom_box_content
{
border-top
:
1px
solid
#eee
;
}
}
}
.highlight_word
{
.highlight_word
{
...
@@ -1058,10 +1070,6 @@ p.time {
...
@@ -1058,10 +1070,6 @@ p.time {
margin-right
:
20px
;
margin-right
:
20px
;
}
}
.merge_request_status_holder
{
margin-bottom
:
20px
;
}
.arrow
{
.arrow
{
float
:
right
;
float
:
right
;
background
:
#E3E5EA
;
background
:
#E3E5EA
;
...
...
app/views/commits/index.html.haml
View file @
69ef8140
...
@@ -14,7 +14,6 @@
...
@@ -14,7 +14,6 @@
#commits_list
=
render
"commits"
#commits_list
=
render
"commits"
.clear
.clear
.loading
{
:style
=>
"display:none;"
}
.loading
{
:style
=>
"display:none;"
}
%center
=
image_tag
"ajax-loader.gif"
-
if
@commits
.
count
==
@limit
-
if
@commits
.
count
==
@limit
:javascript
:javascript
...
...
app/views/commits/show.html.haml
View file @
69ef8140
.
commit
_box
.
main
_box
.
commi
t
.
top_box_conten
t
.right
.right
-
unless
@notes_count
.
zero?
-
unless
@notes_count
.
zero?
%span
.btn.small.disabled.padded
=
pluralize
@notes_count
,
'note'
%span
.btn.small.disabled.padded
=
pluralize
@notes_count
,
'note'
...
@@ -17,8 +17,9 @@
...
@@ -17,8 +17,9 @@
=
@commit
.
committer_name
=
@commit
.
committer_name
%small
=
@commit
.
committed_date
.
stamp
(
"Aug 21, 2011 9:23pm"
)
%small
=
@commit
.
committed_date
.
stamp
(
"Aug 21, 2011 9:23pm"
)
%pre
.commit_message
.middle_box_content
=
commit_msg_with_link_to_issues
(
@project
,
@commit
.
safe_message
)
%pre
.commit_message
=
commit_msg_with_link_to_issues
(
@project
,
@commit
.
safe_message
)
%br
%br
%p
.cgray
%p
.cgray
Showing
#{
pluralize
(
@commit
.
diffs
.
count
,
"changed file"
)
}
Showing
#{
pluralize
(
@commit
.
diffs
.
count
,
"changed file"
)
}
...
...
app/views/deploy_keys/index.html.haml
View file @
69ef8140
...
@@ -6,6 +6,6 @@
...
@@ -6,6 +6,6 @@
Add Deploy Key
Add Deploy Key
-
if
@keys
.
any?
-
if
@keys
.
any?
%table
.zebra-striped.borders
%table
-
@keys
.
each
do
|
key
|
-
@keys
.
each
do
|
key
|
=
render
(
:partial
=>
'show'
,
:locals
=>
{
:key
=>
key
})
=
render
(
:partial
=>
'show'
,
:locals
=>
{
:key
=>
key
})
app/views/help/web_hooks.html.haml
0 → 100644
View file @
69ef8140
%h3
Web hooks
%br
%p
Application will send POST request with some data like example below:
%h5
Hooks request example:
.borders
=
render
"hooks/data_ex"
app/views/hooks/index.html.haml
View file @
69ef8140
...
@@ -6,16 +6,14 @@
...
@@ -6,16 +6,14 @@
=
link_to
new_project_hook_path
(
@project
),
:class
=>
"btn small"
,
:title
=>
"New Web Hook"
do
=
link_to
new_project_hook_path
(
@project
),
:class
=>
"btn small"
,
:title
=>
"New Web Hook"
do
Add Post Receive Hook
Add Post Receive Hook
%p
Read more about web hooks
#{
link_to
"here"
,
help_web_hooks_path
,
:class
=>
"vlink"
}
-
if
@hooks
.
any?
-
if
@hooks
.
any?
%table
.zebra-striped.borders
%table
-
@hooks
.
each
do
|
hook
|
-
@hooks
.
each
do
|
hook
|
%tr
%tr
%td
%td
=
link_to
project_hook_path
(
@project
,
hook
)
do
=
link_to
project_hook_path
(
@project
,
hook
)
do
=
hook
.
url
=
hook
.
url
%td
%td
=
link_to
'Remove'
,
project_hook_path
(
@project
,
hook
),
:confirm
=>
'Are you sure?'
,
:method
=>
:delete
,
:class
=>
"danger btn small"
=
link_to
'Remove'
,
project_hook_path
(
@project
,
hook
),
:confirm
=>
'Are you sure?'
,
:method
=>
:delete
,
:class
=>
"danger btn small right"
.ui-box
%h5
Hooks request example
.data
=
render
"data_ex"
app/views/issues/show.html.haml
View file @
69ef8140
...
@@ -22,8 +22,8 @@
...
@@ -22,8 +22,8 @@
=
link_to
project_issues_path
(
@project
)
do
=
link_to
project_issues_path
(
@project
)
do
←
To issues list
←
To issues list
.
issue
_box
.
main
_box
.
merge_request_status_holder
.
top_box_content
%h5
%h5
-
if
@issue
.
closed
-
if
@issue
.
closed
.alert-message.error.status_info
Closed
.alert-message.error.status_info
Closed
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
.alert-message.success.status_info
Open
.alert-message.success.status_info
Open
=
@issue
.
title
=
@issue
.
title
%div
.middle_area
.middle_box_content
%cite
.cgray
Created by
%cite
.cgray
Created by
=
image_tag
gravatar_icon
(
@issue
.
author_email
),
:width
=>
16
,
:class
=>
"lil_av"
=
image_tag
gravatar_icon
(
@issue
.
author_email
),
:width
=>
16
,
:class
=>
"lil_av"
%strong
.author
=
link_to_issue_author
(
@issue
)
%strong
.author
=
link_to_issue_author
(
@issue
)
...
@@ -40,9 +40,8 @@
...
@@ -40,9 +40,8 @@
=
image_tag
gravatar_icon
(
@issue
.
assignee_email
),
:width
=>
16
,
:class
=>
"lil_av"
=
image_tag
gravatar_icon
(
@issue
.
assignee_email
),
:width
=>
16
,
:class
=>
"lil_av"
%strong
.author
=
link_to_issue_assignee
(
@issue
)
%strong
.author
=
link_to_issue_assignee
(
@issue
)
%div
-
if
@issue
.
description
.
present?
-
if
@issue
.
description
.
present?
.bottom_box_content
%hr
=
markdown
@issue
.
description
=
markdown
@issue
.
description
...
...
app/views/keys/index.html.haml
View file @
69ef8140
...
@@ -4,6 +4,6 @@
...
@@ -4,6 +4,6 @@
%br
%br
%table
#keys-table
.zebra-striped.borders
%table
#keys-table
-
@keys
.
each
do
|
key
|
-
@keys
.
each
do
|
key
|
=
render
(
:partial
=>
'show'
,
:locals
=>
{
:key
=>
key
})
=
render
(
:partial
=>
'show'
,
:locals
=>
{
:key
=>
key
})
app/views/merge_requests/show.html.haml
View file @
69ef8140
...
@@ -22,8 +22,8 @@
...
@@ -22,8 +22,8 @@
=
link_to
project_merge_requests_path
(
@project
)
do
=
link_to
project_merge_requests_path
(
@project
)
do
←
To merge requests
←
To merge requests
.m
erge_request
_box
.m
ain
_box
.
merge_request_status_holder
.
top_box_content
%h5
%h5
-
if
@merge_request
.
closed
-
if
@merge_request
.
closed
.alert-message.error.status_info
Closed
.alert-message.error.status_info
Closed
...
@@ -31,8 +31,7 @@
...
@@ -31,8 +31,7 @@
.alert-message.success.status_info
Open
.alert-message.success.status_info
Open
=
@merge_request
.
title
=
@merge_request
.
title
.middle_box_content
%div
.middle_area
%div
%div
%cite
.cgray
Created at
#{
@merge_request
.
created_at
.
stamp
(
"Aug 21, 2011"
)
}
by
%cite
.cgray
Created at
#{
@merge_request
.
created_at
.
stamp
(
"Aug 21, 2011"
)
}
by
=
image_tag
gravatar_icon
(
@merge_request
.
author_email
),
:width
=>
16
,
:class
=>
"lil_av"
=
image_tag
gravatar_icon
(
@merge_request
.
author_email
),
:width
=>
16
,
:class
=>
"lil_av"
...
@@ -44,17 +43,15 @@
...
@@ -44,17 +43,15 @@
-
if
@merge_request
.
closed
-
if
@merge_request
.
closed
%hr
.bottom_box_content
-
if
@merge_request
.
merged?
-
if
@merge_request
.
merged?
%span
%span
Merged by
#{
@merge_request
.
merge_event
.
author_name
}
Merged by
#{
@merge_request
.
merge_event
.
author_name
}
%small
#{
time_ago_in_words
(
@merge_request
.
merge_event
.
created_at
)
}
ago.
%small
#{
time_ago_in_words
(
@merge_request
.
merge_event
.
created_at
)
}
ago.
-
elsif
@merge_request
.
closed_event
-
elsif
@merge_request
.
closed_event
%span
%span
Closed by
#{
@merge_request
.
closed_event
.
author_name
}
Closed by
#{
@merge_request
.
closed_event
.
author_name
}
%small
#{
time_ago_in_words
(
@merge_request
.
closed_event
.
created_at
)
}
ago.
%small
#{
time_ago_in_words
(
@merge_request
.
closed_event
.
created_at
)
}
ago.
%br
=
render
"merge_requests/commits"
=
render
"merge_requests/commits"
...
...
app/views/projects/_team.html.haml
View file @
69ef8140
%ul
.unstyled.ui-box
.ui-box
-
@project
.
users_projects
.
each
do
|
up
|
%h5
=
render
(
:partial
=>
'team_members/show'
,
:locals
=>
{
:member
=>
up
})
.cgray
Team Members (
#{
@project
.
users_projects
.
count
}
)
%ul
.unstyled
-
@project
.
users_projects
.
each
do
|
up
|
=
render
(
:partial
=>
'team_members/show'
,
:locals
=>
{
:member
=>
up
})
:javascript
:javascript
$
(
function
(){
$
(
function
(){
...
...
app/views/projects/show.html.haml
View file @
69ef8140
=
render
"project_head"
=
render
"project_head"
.
project
_box
.
main
_box
%h3
.top_box_content
=
@project
.
name
%h3
%span
.right
=
@project
.
name
-
if
can?
current_user
,
:download_code
,
@projec
t
%span
.righ
t
=
link_to
"Download"
,
archive_project_repository_path
(
@project
),
:class
=>
"btn small padded"
-
if
can?
current_user
,
:download_code
,
@project
-
if
@project
.
merge_requests_enabled
&&
can?
(
current_user
,
:write_merge_request
,
@project
)
=
link_to
"Download"
,
archive_project_repository_path
(
@project
),
:class
=>
"btn small padded"
=
link_to
new_project_merge_request_path
(
@project
),
:title
=>
"New Merge Request"
,
:class
=>
"btn small padded"
do
-
if
@project
.
merge_requests_enabled
&&
can?
(
current_user
,
:write_merge_request
,
@project
)
Merge Request
=
link_to
new_project_merge_request_path
(
@project
),
:title
=>
"New Merge Request"
,
:class
=>
"btn small padded"
do
-
if
@project
.
issues_enabled
&&
can?
(
current_user
,
:write_issue
,
@project
)
Merge Request
=
link_to
new_project_issue_path
(
@project
),
:title
=>
"New Issue"
,
:class
=>
"btn small"
do
-
if
@project
.
issues_enabled
&&
can?
(
current_user
,
:write_issue
,
@project
)
Issue
=
link_to
new_project_issue_path
(
@project
),
:title
=>
"New Issue"
,
:class
=>
"btn small"
do
.back_link
Issue
=
link_to
projects_path
do
.back_link
←
To projects list
=
link_to
projects_path
do
%br
←
To projects list
.
alert-message.block-message.warning
.
middle_box_content
.input
.input
.input-prepend
.input-prepend
%span
.add-on
git clone
%span
.add-on
git clone
=
text_field_tag
:project_clone
,
@project
.
url_to_repo
,
:class
=>
"xlarge one_click_select git_clone_url"
=
text_field_tag
:project_clone
,
@project
.
url_to_repo
,
:class
=>
"xlarge one_click_select git_clone_url"
-
if
@project
.
description
.
present?
-
if
@project
.
description
.
present?
.markdown.project_descr
=
markdown
@project
.
description
.bottom_box_content
.markdown
=
markdown
@project
.
description
-
unless
@events
.
blank?
-
unless
@events
.
blank?
%br
%br
%h5
.cgray
%h5
.cgray
...
...
config/routes.rb
View file @
69ef8140
...
@@ -8,6 +8,7 @@ Gitlab::Application.routes.draw do
...
@@ -8,6 +8,7 @@ Gitlab::Application.routes.draw do
get
'help'
=>
'help#index'
get
'help'
=>
'help#index'
get
'help/permissions'
=>
'help#permissions'
get
'help/permissions'
=>
'help#permissions'
get
'help/workflow'
=>
'help#workflow'
get
'help/workflow'
=>
'help#workflow'
get
'help/web_hooks'
=>
'help#web_hooks'
namespace
:admin
do
namespace
:admin
do
resources
:users
do
resources
:users
do
...
...
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