BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
11ea009e
Commit
11ea009e
authored
Jan 26, 2014
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6159 from dblessing/fix/mobile_ui_dashboard
Mobile UI improvements
parents
7986b806
8b3b6f10
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
124 additions
and
17 deletions
+124
-17
common.scss
app/assets/stylesheets/generic/common.scss
+10
-0
layout.scss
app/assets/stylesheets/main/layout.scss
+2
-0
header.scss
app/assets/stylesheets/sections/header.scss
+55
-0
nav.scss
app/assets/stylesheets/sections/nav.scss
+34
-0
ui_color.scss
app/assets/stylesheets/themes/ui_color.scss
+1
-1
ui_gray.scss
app/assets/stylesheets/themes/ui_gray.scss
+1
-1
ui_mars.scss
app/assets/stylesheets/themes/ui_mars.scss
+1
-1
ui_modern.scss
app/assets/stylesheets/themes/ui_modern.scss
+1
-1
show.html.haml
app/views/dashboard/show.html.haml
+1
-1
_head_panel.html.haml
app/views/layouts/_head_panel.html.haml
+3
-3
admin.html.haml
app/views/layouts/admin.html.haml
+1
-1
application.html.haml
app/views/layouts/application.html.haml
+1
-1
group.html.haml
app/views/layouts/group.html.haml
+1
-1
profile.html.haml
app/views/layouts/profile.html.haml
+1
-1
project_settings.html.haml
app/views/layouts/project_settings.html.haml
+1
-1
projects.html.haml
app/views/layouts/projects.html.haml
+1
-1
public_projects.html.haml
app/views/layouts/public_projects.html.haml
+1
-1
user_team.html.haml
app/views/layouts/user_team.html.haml
+1
-1
_no_ssh.html.haml
app/views/shared/_no_ssh.html.haml
+7
-1
No files found.
app/assets/stylesheets/generic/common.scss
View file @
11ea009e
...
...
@@ -327,6 +327,12 @@ li.note {
color
:
#fff
;
text-decoration
:
underline
;
}
.links-xs
{
text-align
:
center
;
font-size
:
16px
;
padding
:
5px
;
}
}
.warning_message
{
...
...
@@ -485,3 +491,7 @@ table {
margin-bottom
:
15px
;
}
}
@media
(
max-width
:
$screen-xs-max
)
{
.container
.content
{
margin-top
:
20px
;
}
}
app/assets/stylesheets/main/layout.scss
View file @
11ea009e
html
{
overflow-y
:
scroll
;
&
.touch
.tooltip
{
display
:
none
!
important
;
}
}
body
{
...
...
app/assets/stylesheets/sections/header.scss
View file @
11ea009e
...
...
@@ -29,6 +29,59 @@ header {
float
:
right
;
margin-right
:
0
;
}
.navbar-toggle
{
color
:
$style_color
;
margin
:
0
-15px
0
0
;
padding
:
10px
;
border-radius
:
0
;
button
i
{
font-size
:
22px
;
}
&
.collapsed
{
background-color
:
transparent
!
important
;}
&
:hover
{
background-color
:
#EEE
;
}
}
}
@media
(
max-width
:
$screen-xs-max
)
{
border-width
:
0
;
font-size
:
18px
;
.app_logo
{
margin-left
:
-15px
;
}
.project_name
{
display
:
inline-block
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
vertical-align
:
top
;
white-space
:
nowrap
;
max-width
:
70%
;
}
.navbar-collapse
{
padding-right
:
0
;
padding-left
:
0
;
}
.navbar-nav
{
margin
:
5px
0
;
.visible-xs
,
.visable-sm
{
display
:
table-cell
!
important
;
}
}
li
{
display
:
table-cell
;
width
:
1%
;
a
{
text-align
:
center
;
font-size
:
18px
!
important
;
}
}
}
}
...
...
@@ -128,6 +181,8 @@ header {
background
:
#708090
;
border-bottom
:
1px
solid
#AAA
;
.navbar-toggle
{
color
:
#fff
;
}
.nav
>
li
>
a
{
color
:
#AAA
;
text-shadow
:
0
1px
0
#444
;
...
...
app/assets/stylesheets/sections/nav.scss
View file @
11ea009e
...
...
@@ -83,4 +83,38 @@
padding-top
:
2px
;
}
}
@media
(
max-width
:
$screen-xs-max
)
{
font-size
:
18px
;
margin
:
0
;
max-height
:
none
;
&
,
.container
{
padding
:
0
;
border-top
:
0
;
}
ul
{
height
:
auto
;
li
{
display
:
list-item
;
width
:
auto
;
padding
:
5px
0
;
&
.active
{
background-color
:
$primary_color
;
a
{
color
:
#fff
;
font-weight
:
normal
;
text-shadow
:
none
;
&
:after
{
display
:
none
;
}
}
}
}
}
}
}
app/assets/stylesheets/themes/ui_color.scss
View file @
11ea009e
...
...
@@ -18,7 +18,7 @@
.navbar-inner
{
background
:
#547
;
border-bottom
:
1px
solid
#435
;
.app_logo
{
.app_logo
,
.navbar-toggle
{
&
:hover
{
background-color
:
#435
;
}
...
...
app/assets/stylesheets/themes/ui_gray.scss
View file @
11ea009e
...
...
@@ -18,7 +18,7 @@
.navbar-inner
{
background
:
#373737
;
border-bottom
:
1px
solid
#272727
;
.app_logo
{
.app_logo
,
.navbar-toggle
{
&
:hover
{
background-color
:
#272727
;
}
...
...
app/assets/stylesheets/themes/ui_mars.scss
View file @
11ea009e
...
...
@@ -18,7 +18,7 @@
.navbar-inner
{
background
:
#474D57
;
border-bottom
:
1px
solid
#373D47
;
.app_logo
{
.app_logo
,
.navbar-toggle
{
&
:hover
{
background-color
:
#373D47
;
}
...
...
app/assets/stylesheets/themes/ui_modern.scss
View file @
11ea009e
...
...
@@ -18,7 +18,7 @@
.navbar-inner
{
background
:
#345
;
border-bottom
:
1px
solid
#234
;
.app_logo
{
.app_logo
,
.navbar-toggle
{
&
:hover
{
background-color
:
#234
;
}
...
...
app/views/dashboard/show.html.haml
View file @
11ea009e
...
...
@@ -2,7 +2,7 @@
.dashboard.row
.activities.col-md-8
=
render
'activities'
.side.col-md-4.hidden-sm
.side.col-md-4.hidden-sm
.hidden-xs
=
render
'sidebar'
-
else
...
...
app/views/layouts/_head_panel.html.haml
View file @
11ea009e
...
...
@@ -14,14 +14,14 @@
.navbar-collapse.collapse
%ul
.nav.navbar-nav
%li
%li
.hidden-sm.hidden-xs
%a
%div
.hide.turbolink-spinner
%i
.icon-refresh.icon-spin
Loading...
%li
.hidden-sm
%li
.hidden-sm
.hidden-xs
=
render
"layouts/search"
%li
.visible-sm
%li
.visible-sm
.visible-xs
=
link_to
search_path
,
title:
"Search"
,
class:
'has_bottom_tooltip'
,
'data-original-title'
=>
'Search area'
do
%i
.icon-search
%li
...
...
app/views/layouts/admin.html.haml
View file @
11ea009e
...
...
@@ -4,7 +4,7 @@
%body
{
class:
"#{app_theme} admin"
,
:'data-page'
=>
body_data_page
}
=
render
"layouts/head_panel"
,
title:
"Admin area"
=
render
"layouts/flash"
%nav
.main-nav
%nav
.main-nav
.navbar-collapse.collapse
.container
=
render
'layouts/nav/admin'
.container
...
...
app/views/layouts/application.html.haml
View file @
11ea009e
...
...
@@ -5,7 +5,7 @@
=
render
"layouts/broadcast"
=
render
"layouts/head_panel"
,
title:
"Dashboard"
=
render
"layouts/flash"
%nav
.main-nav
%nav
.main-nav
.navbar-collapse.collapse
.container
=
render
'layouts/nav/dashboard'
.container
...
...
app/views/layouts/group.html.haml
View file @
11ea009e
...
...
@@ -5,7 +5,7 @@
=
render
"layouts/broadcast"
=
render
"layouts/head_panel"
,
title:
"group:
#{
@group
.
name
}
"
=
render
"layouts/flash"
%nav
.main-nav
%nav
.main-nav
.navbar-collapse.collapse
.container
=
render
'layouts/nav/group'
.container
...
...
app/views/layouts/profile.html.haml
View file @
11ea009e
...
...
@@ -5,7 +5,7 @@
=
render
"layouts/broadcast"
=
render
"layouts/head_panel"
,
title:
"Profile"
=
render
"layouts/flash"
%nav
.main-nav
%nav
.main-nav
.navbar-collapse.collapse
.container
=
render
'layouts/nav/profile'
.container
...
...
app/views/layouts/project_settings.html.haml
View file @
11ea009e
...
...
@@ -9,7 +9,7 @@
-
if
can?
(
current_user
,
:download_code
,
@project
)
=
render
'shared/no_ssh'
%nav
.main-nav
%nav
.main-nav
.navbar-collapse.collapse
.container
=
render
'layouts/nav/project'
.container
...
...
app/views/layouts/projects.html.haml
View file @
11ea009e
...
...
@@ -9,7 +9,7 @@
-
if
can?
(
current_user
,
:download_code
,
@project
)
=
render
'shared/no_ssh'
%nav
.main-nav
%nav
.main-nav
.navbar-collapse.collapse
.container
=
render
'layouts/nav/project'
.container
...
...
app/views/layouts/public_projects.html.haml
View file @
11ea009e
...
...
@@ -3,7 +3,7 @@
=
render
"layouts/head"
,
title:
@project
.
name_with_namespace
%body
{
class:
"#{app_theme} application"
,
:'data-page'
=>
body_data_page
}
=
render
"layouts/public_head_panel"
%nav
.main-nav
%nav
.main-nav
.navbar-collapse.collapse
.container
=
render
'layouts/nav/project'
.container
.content
=
yield
app/views/layouts/user_team.html.haml
View file @
11ea009e
...
...
@@ -4,7 +4,7 @@
%body
{
class:
"#{app_theme} application"
,
:'data-page'
=>
body_data_page
}
=
render
"layouts/head_panel"
,
title:
"team:
#{
@team
.
name
}
"
=
render
"layouts/flash"
%nav
.main-nav
%nav
.main-nav
.navbar-collapse.collapse
.container
=
render
'layouts/nav/team'
.container
...
...
app/views/shared/_no_ssh.html.haml
View file @
11ea009e
...
...
@@ -2,7 +2,13 @@
.no-ssh-key-message
.container
You won't be able to pull or push project code via SSH until you
#{
link_to
'add an SSH key'
,
new_profile_key_path
}
to your profile
%div
.pull-right
.pull-right.hidden-xs
=
link_to
"Don't show again"
,
profile_path
(
user:
{
hide_no_ssh_key:
true
}),
method: :put
,
class:
'hide-no-ssh-message'
,
remote:
true
|
=
link_to
'Remind later'
,
'#'
,
class:
'hide-no-ssh-message'
.links-xs.visible-xs
=
link_to
"Add key"
,
new_profile_key_path
|
=
link_to
"Don't show again"
,
profile_path
(
user:
{
hide_no_ssh_key:
true
}),
method: :put
,
class:
'hide-no-ssh-message'
,
remote:
true
|
=
link_to
'Later'
,
'#'
,
class:
'hide-no-ssh-message'
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