summaryrefslogtreecommitdiff
path: root/plugins/Boardcustomizer/Template/layout/head.php
blob: fca861f97cdf02b1f80acbb431e4314f65cc8ff3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<?php
if ($this->user->userMetadataModel->exists($this->user->getid(), "boardcustomizer_materialcard")) {
    /* change overall card layout and shadow */
    ?>
    <style>
        .board-task-list>div.task-board {
            font-size: 13px;
            border-left-width: 2.5px !important;
            border-radius: 3px;
            padding-left: 6px;
            padding-right: 4px;
            padding-top: 6px;
            padding-bottom: 6px;
            margin-bottom: 8px;
            margin-left: 8px;
            margin-right: 8px;
            box-shadow: 0 1px 2px rgba(62, 54, 54, 0.55);
            border-right: none;
            border-top: 1px solid #ececec;
            border-bottom: none;
        }
    </style>
<?php
}
if ($this->user->userMetadataModel->exists($this->user->getid(), "boardcustomizer_onlyfirstcolumnheaders")) {
    /* This will hide all column titles on swimlanes except for the first one */
    ?>
    <style>
        tr[class*='board-swimlane-columns']:not(:first-child) {
            display: none;
        }

        .board-column-header-task-count {
            display: none;
        }
    </style>
<?php
}
if ($this->user->userMetadataModel->exists($this->user->getid(), "boardcustomizer_hidetaskage")) {
    /* hide task age */
    ?>
    <style>
        .task-icon-age {
            display: none;
        }
    </style>
<?php
}
if ($this->user->userMetadataModel->exists($this->user->getid(), "boardcustomizer_hidetaskpriority")) {
    /* hide task priority */
    ?>
    <style>
        .task-priority {
            display: none;
        }
    </style>
<?php
}
if ($this->user->userMetadataModel->exists($this->user->getid(), "boardcustomizer_whitebackground")) {
    /* task white background */
    ?>
    <style>
        .board-task-list>div {
            background-color: white !important;
            background: #fff;
        }
    </style>
<?php
}
if ($this->user->userMetadataModel->exists($this->user->getid(), "boardcustomizer_topnavhiddenscrollbar")) {
    /* better nav bar */
    ?>
    <style>
        #select-dropdown-menu {
            overflow: auto !important;
        }
    </style>
<?php
}
if ($this->user->userMetadataModel->exists($this->user->getid(), "boardcustomizer_groupassign_hidecardlabels")) {
    /* hide group assign labels */
    ?>
    <style>
        .assigned-group-label {
            display: none;
        }

        .assigned-other-label {
            display: none;
        }
    </style>
<?php
}
if ($this->user->userMetadataModel->exists($this->user->getid(), "boardcustomizer_hideownername")) {
    /* hide owner text */
    ?>
    <style>
        div.task-board-header > .task-board-assignee {
            display: none;
        }
    </style>
<?php
}
if ($this->user->userMetadataModel->exists($this->user->getid(), "boardcustomizer_hidecategory")) {
    /* hide category */
    ?>
    <style>
        .task-board-category-container {
            display: none;
        }
    </style>
<?php
}
if ($this->user->userMetadataModel->exists($this->user->getid(), "boardcustomizer_hidetags")) {
    /* hide tags */
    ?>
    <style>
        .task-tags {
            display: none;
        }
    </style>
<?php
}
if ($this->user->userMetadataModel->exists($this->user->getid(), "boardcustomizer_hidefooter")) {
    /* hide whole footer */
    ?>
    <style>
        .task-board-icons {
            display: none;
        }
    </style>
<?php
}
if ($this->user->userMetadataModel->exists($this->user->getid(), "boardcustomizer_hidereference")) {
    /* hide reference */
    ?>
    <style>
        .task-board-reference {
            display: none;
        }
    </style>
<?php
}
if ($this->user->userMetadataModel->exists($this->user->getid(), "boardcustomizer_hidescore")) {
    /* hide score */
    ?>
    <style>
        .task-score {
            display: none;
        }
    </style>
<?php
}
if ($this->user->userMetadataModel->exists($this->user->getid(), "boardcustomizer_hidetimeestimated")) {
    /* hide time estimated */
    ?>
    <style>
        .task-time-estimated {
            display: none;
        }
    </style>
<?php
}
if ($this->user->userMetadataModel->exists($this->user->getid(), "boardcustomizer_hidetaskdate")) {
    /* hide task date */
    ?>
    <style>
        .task-date {
            display: none;
        }
    </style>
<?php
}