Change dashboard
This commit is contained in:
@@ -1384,31 +1384,6 @@ span.task-board-date-overdue {
|
||||
margin-left: 25px;
|
||||
}
|
||||
/* dashboard */
|
||||
|
||||
@media only screen and (min-width: 1280px) {
|
||||
|
||||
#dashboard table {
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
.dashboard-left-column {
|
||||
width: 58%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.dashboard-right-column {
|
||||
margin-left: 2%;
|
||||
width: 40%;
|
||||
float: left;
|
||||
}
|
||||
}
|
||||
|
||||
.dashboard-single-column {
|
||||
width: 95%;
|
||||
margin-left: 0;
|
||||
float: none;
|
||||
}
|
||||
|
||||
.dashboard-project-stats span {
|
||||
font-size: 0.75em;
|
||||
margin-right: 10px;
|
||||
@@ -1430,9 +1405,10 @@ span.task-board-date-overdue {
|
||||
color: #999;
|
||||
}
|
||||
|
||||
#dashboard-calendar {
|
||||
font-size: 0.85em;
|
||||
}/* datepicker */
|
||||
#dashboard .sidebar-content {
|
||||
font-size: 0.9em;
|
||||
}
|
||||
/* datepicker */
|
||||
#ui-datepicker-div {
|
||||
font-size: 0.8em;
|
||||
}
|
||||
|
||||
@@ -1,29 +1,4 @@
|
||||
/* dashboard */
|
||||
|
||||
@media only screen and (min-width: 1280px) {
|
||||
|
||||
#dashboard table {
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
.dashboard-left-column {
|
||||
width: 58%;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.dashboard-right-column {
|
||||
margin-left: 2%;
|
||||
width: 40%;
|
||||
float: left;
|
||||
}
|
||||
}
|
||||
|
||||
.dashboard-single-column {
|
||||
width: 95%;
|
||||
margin-left: 0;
|
||||
float: none;
|
||||
}
|
||||
|
||||
.dashboard-project-stats span {
|
||||
font-size: 0.75em;
|
||||
margin-right: 10px;
|
||||
@@ -45,6 +20,6 @@
|
||||
color: #999;
|
||||
}
|
||||
|
||||
#dashboard-calendar {
|
||||
font-size: 0.85em;
|
||||
}
|
||||
#dashboard .sidebar-content {
|
||||
font-size: 0.9em;
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -29,8 +29,7 @@ Kanboard.Calendar = (function() {
|
||||
lang: $("body").data("js-lang"),
|
||||
editable: true,
|
||||
eventLimit: true,
|
||||
height: Kanboard.Exists("dashboard-calendar") ? 500 : "auto",
|
||||
defaultView: "agendaWeek",
|
||||
defaultView: "month",
|
||||
header: {
|
||||
left: 'prev,next today',
|
||||
center: 'title',
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
Kanboard.Dashboard = (function() {
|
||||
|
||||
jQuery(document).ready(function() {
|
||||
|
||||
var state = Kanboard.GetStorageItem("dashboard_view");
|
||||
|
||||
if (state) {
|
||||
|
||||
var sections = JSON.parse(state);
|
||||
|
||||
for (var section in sections) {
|
||||
$("#dashboard-" + section).toggle(sections[section]);
|
||||
}
|
||||
|
||||
hideColumns();
|
||||
}
|
||||
});
|
||||
|
||||
jQuery(document).on('click', ".dashboard-toggle", function(e) {
|
||||
e.preventDefault();
|
||||
|
||||
$("#dashboard-" + $(this).data("toggle")).toggle();
|
||||
hideColumns();
|
||||
|
||||
var sections = ["projects", "tasks", "subtasks", "activities", "calendar"];
|
||||
var state = {};
|
||||
|
||||
for (var i = 0; i < sections.length; i++) {
|
||||
state[sections[i]] = $("#dashboard-" + sections[i]).is(":visible");
|
||||
}
|
||||
|
||||
Kanboard.SetStorageItem("dashboard_view", JSON.stringify(state));
|
||||
});
|
||||
|
||||
function hideColumns()
|
||||
{
|
||||
if ($(".dashboard-right-column > div:visible").size() > 0) {
|
||||
$(".dashboard-left-column").removeClass("dashboard-single-column");
|
||||
}
|
||||
else {
|
||||
$(".dashboard-left-column").addClass("dashboard-single-column");
|
||||
}
|
||||
|
||||
if ($(".dashboard-left-column > div:visible").size() > 0) {
|
||||
$(".dashboard-right-column").removeClass("dashboard-single-column");
|
||||
}
|
||||
else {
|
||||
$(".dashboard-right-column").addClass("dashboard-single-column");
|
||||
}
|
||||
}
|
||||
|
||||
})();
|
||||
Reference in New Issue
Block a user