Cleaner dashboard sidebar
This commit is contained in:
parent
03586c6c79
commit
3dcc441916
|
@ -206,17 +206,6 @@ p.time {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.arrow{
|
|
||||||
background: #E3E5EA;
|
|
||||||
padding: 5px;
|
|
||||||
margin-top: 5px;
|
|
||||||
@include border-radius(5px);
|
|
||||||
text-shadow: none;
|
|
||||||
color: #999;
|
|
||||||
line-height: 16px;
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
.thin_area{
|
.thin_area{
|
||||||
height: 150px;
|
height: 150px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,22 +14,6 @@
|
||||||
padding: 2px 15px;
|
padding: 2px 15px;
|
||||||
}
|
}
|
||||||
.nav-projects-tabs li { padding: 0; }
|
.nav-projects-tabs li { padding: 0; }
|
||||||
.well-list {
|
|
||||||
li { padding: 15px; }
|
|
||||||
.arrow {
|
|
||||||
float: right;
|
|
||||||
padding: 10px;
|
|
||||||
margin: 0;
|
|
||||||
}
|
|
||||||
.last_activity {
|
|
||||||
padding-top: 5px;
|
|
||||||
display: block;
|
|
||||||
span, strong {
|
|
||||||
font-size: 12px;
|
|
||||||
color: #666;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -85,3 +69,34 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.project-row, .group-row {
|
||||||
|
padding: 15px !important;
|
||||||
|
|
||||||
|
.namespace-name {
|
||||||
|
color: #666;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.project-name, .group-name {
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
.arrow {
|
||||||
|
float: right;
|
||||||
|
padding: 10px 5px;
|
||||||
|
margin: 0;
|
||||||
|
font-size: 20px;
|
||||||
|
color: #666;
|
||||||
|
}
|
||||||
|
|
||||||
|
.last-activity, .owner-info {
|
||||||
|
color: #AAA;
|
||||||
|
display: block;
|
||||||
|
margin-top: 5px;
|
||||||
|
.date, .owner {
|
||||||
|
color: #777;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -41,6 +41,8 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.event-body {
|
.event-body {
|
||||||
|
margin-left: 35px;
|
||||||
|
|
||||||
.commit p {
|
.commit p {
|
||||||
color: #666;
|
color: #666;
|
||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
|
@ -51,7 +53,6 @@
|
||||||
.event-note {
|
.event-note {
|
||||||
color: #555;
|
color: #555;
|
||||||
margin-top: 5px;
|
margin-top: 5px;
|
||||||
margin-left: 35px;
|
|
||||||
|
|
||||||
pre {
|
pre {
|
||||||
border: none;
|
border: none;
|
||||||
|
@ -77,10 +78,6 @@
|
||||||
margin-right: 5px;
|
margin-right: 5px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.avatar {
|
|
||||||
position: relative;
|
|
||||||
top: -3px;
|
|
||||||
}
|
|
||||||
.event_icon {
|
.event_icon {
|
||||||
position: relative;
|
position: relative;
|
||||||
float: right;
|
float: right;
|
||||||
|
@ -95,7 +92,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ul {
|
ul {
|
||||||
margin-left: 35px;
|
|
||||||
margin-bottom: 5px;
|
margin-bottom: 5px;
|
||||||
.avatar {
|
.avatar {
|
||||||
width: 18px;
|
width: 18px;
|
||||||
|
|
|
@ -8,15 +8,15 @@
|
||||||
New Group
|
New Group
|
||||||
%ul.well-list.dash-list
|
%ul.well-list.dash-list
|
||||||
- groups.each do |group|
|
- groups.each do |group|
|
||||||
%li
|
%li.group-row
|
||||||
= link_to group_path(id: group.path), class: dom_class(group) do
|
= link_to group_path(id: group.path), class: dom_class(group) do
|
||||||
%strong.well-title
|
%span.group-name
|
||||||
= truncate(group.name, length: 35)
|
= truncate(group.name, length: 35)
|
||||||
%span.arrow
|
%span.arrow
|
||||||
→
|
%i.icon-angle-right
|
||||||
%span.last_activity
|
%span.owner-info
|
||||||
%strong Owner:
|
%span Owner:
|
||||||
%span= group.owner_name
|
%span.owner= group.owner_name
|
||||||
- if groups.blank?
|
- if groups.blank?
|
||||||
%li
|
%li
|
||||||
%h3.nothing_here_message You have no groups yet.
|
%h3.nothing_here_message You have no groups yet.
|
||||||
|
|
|
@ -9,18 +9,19 @@
|
||||||
|
|
||||||
%ul.well-list.dash-list
|
%ul.well-list.dash-list
|
||||||
- projects.each do |project|
|
- projects.each do |project|
|
||||||
%li
|
%li.project-row
|
||||||
= link_to project_path(project), class: dom_class(project) do
|
= link_to project_path(project), class: dom_class(project) do
|
||||||
- if project.namespace
|
%span.namespace-name
|
||||||
= project.namespace.human_name
|
- if project.namespace
|
||||||
\/
|
= project.namespace.human_name
|
||||||
%strong.well-title
|
\/
|
||||||
|
%span.project-name
|
||||||
= truncate(project.name, length: 25)
|
= truncate(project.name, length: 25)
|
||||||
%span.arrow
|
%span.arrow
|
||||||
→
|
%i.icon-angle-right
|
||||||
%span.last_activity
|
%span.last-activity
|
||||||
%strong Last activity:
|
%span Last activity:
|
||||||
%span= project_last_activity(project)
|
%span.date= project_last_activity(project)
|
||||||
- if projects.blank?
|
- if projects.blank?
|
||||||
%li
|
%li
|
||||||
%h3.nothing_here_message There are no projects here.
|
%h3.nothing_here_message There are no projects here.
|
||||||
|
|
|
@ -1,22 +1,21 @@
|
||||||
.ui-box
|
.ui-box
|
||||||
%h5.title
|
%h5.title
|
||||||
Projects
|
Projects (#{projects.count})
|
||||||
%small
|
|
||||||
(#{projects.count})
|
|
||||||
- if can? current_user, :manage_group, @group
|
- if can? current_user, :manage_group, @group
|
||||||
%span.pull-right
|
%span.pull-right
|
||||||
= link_to new_project_path(namespace_id: @group.id), class: "btn btn-tiny info" do
|
= link_to new_project_path(namespace_id: @group.id), class: "btn" do
|
||||||
%i.icon-plus
|
%i.icon-plus
|
||||||
New Project
|
New Project
|
||||||
%ul.well-list
|
%ul.well-list
|
||||||
- if projects.blank?
|
- if projects.blank?
|
||||||
%p.nothing_here_message This groups has no projects yet
|
%p.nothing_here_message This groups has no projects yet
|
||||||
- projects.each do |project|
|
- projects.each do |project|
|
||||||
%li
|
%li.project-row
|
||||||
= link_to project_path(project), class: dom_class(project) do
|
= link_to project_path(project), class: dom_class(project) do
|
||||||
%strong.well-title= truncate(project.name, length: 25)
|
%span.project-name
|
||||||
|
= truncate(project.name, length: 25)
|
||||||
%span.arrow
|
%span.arrow
|
||||||
→
|
%i.icon-angle-right
|
||||||
%span.last_activity
|
%span.last-activity
|
||||||
%strong Last activity:
|
%span Last activity:
|
||||||
%span= project_last_activity(project)
|
%span.date= project_last_activity(project)
|
||||||
|
|
Loading…
Reference in New Issue