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
130f60d5
Commit
130f60d5
authored
Jan 31, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a bit of restyling. Replace some images with icons. Simplify note form
parent
315fd7d7
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
50 additions
and
80 deletions
+50
-80
app/assets/images/home_icon.PNG
app/assets/images/home_icon.PNG
+0
-0
app/assets/images/icon-attachment.png
app/assets/images/icon-attachment.png
+0
-0
app/assets/javascripts/notes.js
app/assets/javascripts/notes.js
+2
-2
app/assets/stylesheets/common.scss
app/assets/stylesheets/common.scss
+0
-4
app/assets/stylesheets/sections/nav.scss
app/assets/stylesheets/sections/nav.scss
+5
-7
app/assets/stylesheets/sections/notes.scss
app/assets/stylesheets/sections/notes.scss
+14
-44
app/views/layouts/admin.html.haml
app/views/layouts/admin.html.haml
+2
-1
app/views/layouts/application.html.haml
app/views/layouts/application.html.haml
+2
-1
app/views/layouts/group.html.haml
app/views/layouts/group.html.haml
+2
-1
app/views/layouts/profile.html.haml
app/views/layouts/profile.html.haml
+2
-1
app/views/layouts/project_resource.html.haml
app/views/layouts/project_resource.html.haml
+2
-1
app/views/layouts/user_team.html.haml
app/views/layouts/user_team.html.haml
+2
-1
app/views/notes/_form.html.haml
app/views/notes/_form.html.haml
+16
-16
app/views/notes/_note.html.haml
app/views/notes/_note.html.haml
+1
-1
No files found.
app/assets/images/home_icon.PNG
deleted
100644 → 0
View file @
315fd7d7
596 Bytes
app/assets/images/icon-attachment.png
deleted
100644 → 0
View file @
315fd7d7
450 Bytes
app/assets/javascripts/notes.js
View file @
130f60d5
...
...
@@ -20,12 +20,12 @@ var NoteList = {
if
(
NoteList
.
reversed
)
{
var
form
=
$
(
"
.js-main-target-form
"
);
form
.
find
(
"
.
buttons, .note_op
tions
"
).
hide
();
form
.
find
(
"
.
note-form-ac
tions
"
).
hide
();
var
textarea
=
form
.
find
(
"
.js-note-text
"
);
textarea
.
css
(
"
height
"
,
"
40px
"
);
textarea
.
on
(
"
focus
"
,
function
(){
textarea
.
css
(
"
height
"
,
"
80px
"
);
form
.
find
(
"
.
buttons, .note_op
tions
"
).
show
();
form
.
find
(
"
.
note-form-ac
tions
"
).
show
();
});
}
...
...
app/assets/stylesheets/common.scss
View file @
130f60d5
...
...
@@ -338,10 +338,6 @@ li.note {
li
{
border-bottom
:none
!
important
;
}
.attachment
{
padding-left
:
20px
;
background
:url
(
"icon-attachment.png"
)
no-repeat
left
center
;
}
}
}
...
...
app/assets/stylesheets/sections/nav.scss
View file @
130f60d5
...
...
@@ -6,8 +6,7 @@ ul.main_menu {
margin
:
auto
;
margin
:
30px
0
;
margin-top
:
10px
;
border-bottom
:
1px
solid
#DDD
;
height
:
37px
;
height
:
38px
;
position
:
relative
;
overflow
:
hidden
;
.count
{
...
...
@@ -33,6 +32,7 @@ ul.main_menu {
margin
:
0
;
display
:
table-cell
;
width
:
1%
;
border-bottom
:
2px
solid
#EEE
;
&
.active
{
border-bottom
:
2px
solid
#474D57
;
a
{
...
...
@@ -42,10 +42,8 @@ ul.main_menu {
&
.home
{
a
{
background
:
url(home_icon.PNG)
no-repeat
center
center
;
text-indent
:
-9999px
;
min-width
:
20px
;
img
{
i
{
font-size
:
20px
;
position
:
relative
;
top
:
4px
;
}
...
...
@@ -56,7 +54,7 @@ ul.main_menu {
display
:
block
;
text-align
:
center
;
font-weight
:
normal
;
height
:
3
5
px
;
height
:
3
6
px
;
line-height
:
36px
;
color
:
#777
;
text-shadow
:
0
1px
1px
white
;
...
...
app/assets/stylesheets/sections/notes.scss
View file @
130f60d5
...
...
@@ -81,14 +81,6 @@ ul.notes {
.attachment
{
font-size
:
14px
;
margin-top
:
-20px
;
.icon-attachment
{
@extend
.icon-paper-clip
;
font-size
:
24px
;
position
:
relative
;
text-align
:
right
;
top
:
6px
;
}
}
.note-body
{
margin-left
:
45px
;
...
...
@@ -229,11 +221,6 @@ ul.notes {
.discussion
{
.new_note
{
margin
:
8px
5px
8px
0
;
.note_options
{
// because of the smaller width and the extra "cancel" button
margin-top
:
8px
;
}
}
}
.new_note
{
...
...
@@ -246,37 +233,6 @@ ul.notes {
.clearfix
{
margin-bottom
:
0
;
}
.note_options
{
h6
{
@extend
.left
;
line-height
:
20px
;
padding-right
:
16px
;
padding-bottom
:
16px
;
}
label
{
padding
:
0
;
}
.attachment
{
@extend
.pull-right
;
position
:
relative
;
width
:
350px
;
height
:
50px
;
margin
:
0
0
5px
!
important
;
// hide the actual file field
input
{
display
:
none
;
}
.choose-btn
{
float
:
right
;
}
}
.notify_options
{
@extend
.pull-right
;
}
}
.note_text_and_preview
{
// makes the "absolute" position for links relative to this
position
:
relative
;
...
...
@@ -315,3 +271,17 @@ ul.notes {
@extend
.thumbnail
;
margin-left
:
45px
;
}
.note-form-actions
{
background
:
#F9F9F9
;
height
:
45px
;
padding
:
0
5px
;
.note-form-option
{
margin-top
:
8px
;
margin-left
:
15px
;
@extend
.pull-left
;
@extend
.span4
;
}
}
app/views/layouts/admin.html.haml
View file @
130f60d5
...
...
@@ -7,7 +7,8 @@
.container
%ul
.main_menu
=
nav_link
(
controller: :dashboard
,
html_options:
{
class:
'home'
})
do
=
link_to
"Stats"
,
admin_root_path
=
link_to
admin_root_path
,
title:
"Stats"
do
%i
.icon-home
=
nav_link
(
controller: :projects
)
do
=
link_to
"Projects"
,
admin_projects_path
=
nav_link
(
controller: :teams
)
do
...
...
app/views/layouts/application.html.haml
View file @
130f60d5
...
...
@@ -7,7 +7,8 @@
.container
%ul
.main_menu
=
nav_link
(
path:
'dashboard#show'
,
html_options:
{
class:
'home'
})
do
=
link_to
"Home"
,
root_path
,
title:
"Home"
=
link_to
root_path
,
title:
"Home"
do
%i
.icon-home
=
nav_link
(
path:
'dashboard#projects'
)
do
=
link_to
projects_dashboard_path
do
Projects
...
...
app/views/layouts/group.html.haml
View file @
130f60d5
...
...
@@ -7,7 +7,8 @@
.container
%ul
.main_menu
=
nav_link
(
path:
'groups#show'
,
html_options:
{
class:
'home'
})
do
=
link_to
"Home"
,
group_path
(
@group
),
title:
"Home"
=
link_to
group_path
(
@group
),
title:
"Home"
do
%i
.icon-home
=
nav_link
(
path:
'groups#issues'
)
do
=
link_to
issues_group_path
(
@group
)
do
Issues
...
...
app/views/layouts/profile.html.haml
View file @
130f60d5
...
...
@@ -7,7 +7,8 @@
.container
%ul
.main_menu
=
nav_link
(
path:
'profiles#show'
,
html_options:
{
class:
'home'
})
do
=
link_to
"Profile"
,
profile_path
=
link_to
profile_path
,
title:
"Profile"
do
%i
.icon-home
=
nav_link
(
path:
'profiles#account'
)
do
=
link_to
"Account"
,
account_profile_path
=
nav_link
(
controller: :keys
)
do
...
...
app/views/layouts/project_resource.html.haml
View file @
130f60d5
...
...
@@ -12,7 +12,8 @@
.container
%ul
.main_menu
=
nav_link
(
html_options:
{
class:
"home
#{
project_tab_class
}
"
})
do
=
link_to
@project
.
path
,
project_path
(
@project
),
title:
"Project"
=
link_to
project_path
(
@project
),
title:
"Project"
do
%i
.icon-home
-
if
@project
.
repo_exists?
-
if
can?
current_user
,
:download_code
,
@project
...
...
app/views/layouts/user_team.html.haml
View file @
130f60d5
...
...
@@ -7,7 +7,8 @@
.container
%ul
.main_menu
=
nav_link
(
path:
'teams#show'
,
html_options:
{
class:
'home'
})
do
=
link_to
"Home"
,
team_path
(
@team
),
title:
"Home"
=
link_to
team_path
(
@team
),
title:
"Home"
do
%i
.icon-home
=
nav_link
(
path:
'teams#issues'
)
do
=
link_to
issues_team_path
(
@team
)
do
...
...
app/views/notes/_form.html.haml
View file @
130f60d5
...
...
@@ -15,30 +15,30 @@
=
f
.
text_area
:note
,
size:
255
,
class:
'note_text js-note-text js-gfm-input turn-on'
.note_preview.js-note-preview.turn-off
.buttons
=
f
.
submit
'Add Comment'
,
class:
"btn comment-btn grouped js-comment-button"
%a
.btn.grouped.js-close-discussion-note-form
Cancel
.hint
.pull-right
Comments are parsed with
#{
link_to
"GitLab Flavored Markdown"
,
help_markdown_path
,
target:
'_blank'
}
.
.clearfix
.note_options
.attachment
%h6
Attachment:
.file_name.js-attachment-filename
File name...
%a
.choose-btn.btn.btn-small.js-choose-note-attachment-button
Choose File ...
.hint
Any file up to 10 MB
.note-form-actions
.buttons
=
f
.
submit
'Add Comment'
,
class:
"btn comment-btn grouped js-comment-button"
%a
.btn.grouped.js-close-discussion-note-form
Cancel
=
f
.
file_field
:attachment
,
class:
"js-note-attachment-input"
.notify_options
%h6
Notify via email:
.note-form-option
=
label_tag
:notify
do
=
check_box_tag
:notify
,
1
,
!
@note
.
for_commit?
Project team
%span
.light
Notify team via email
.js-notify-commit-author
=
label_tag
:notify_author
do
=
check_box_tag
:notify_author
,
1
,
@note
.
for_commit?
Commit author
.clearfix
%span
.light
Notify commit author
.note-form-option
%a
.choose-btn.btn.btn-small.js-choose-note-attachment-button
%i
.icon-paper-clip
%span
Choose File ...
%span
.file_name.js-attachment-filename
File name...
=
f
.
file_field
:attachment
,
class:
"js-note-attachment-input hide"
.clearfix
app/views/notes/_note.html.haml
View file @
130f60d5
...
...
@@ -32,6 +32,6 @@
=
image_tag
note
.
attachment
.
url
,
class:
'note-image-attach'
.attachment.pull-right
=
link_to
note
.
attachment
.
url
,
target:
"_blank"
do
%i
.icon-
attachment
%i
.icon-
paper-clip
=
note
.
attachment_identifier
.clear
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