Skip to content

Commit 1b2fa0a

Browse files
committed
Make import/export/revisions collapsible
These features won't be needed too often, so lets hide them.
1 parent af75256 commit 1b2fa0a

File tree

3 files changed

+23
-6
lines changed

3 files changed

+23
-6
lines changed

client/css/style.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -627,7 +627,7 @@ img {
627627
padding-bottom: 0;
628628
}
629629

630-
.export button, .import * {
630+
.export button, .import label {
631631
margin-right: 15px;
632632
}
633633
#revisions-list li > * {

client/script.js

+15
Original file line numberDiff line numberDiff line change
@@ -916,6 +916,21 @@ $(function() {
916916
containment: 'parent'
917917
});
918918

919+
$( ".export" ).accordion({
920+
collapsible: true,
921+
active: false
922+
});
923+
924+
$( ".import" ).accordion({
925+
collapsible: true,
926+
active: false
927+
});
928+
929+
$( ".revisions" ).accordion({
930+
collapsible: true,
931+
active: false
932+
});
933+
919934
$('#export-txt').click(function() {
920935
socket.json.send({
921936
action: 'exportTxt',

views/index.jade

+7-5
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,10 @@ block body
6161

6262
div.export
6363
h3 Export board
64-
button#export-txt Text format
65-
button#export-csv CSV format
66-
button#export-json JSON format (for import in Scrumblr)
64+
div
65+
button#export-txt Text format
66+
button#export-csv CSV format
67+
button#export-json JSON format (for import in Scrumblr)
6768

6869
div.import
6970
h3 Import board
@@ -74,9 +75,10 @@ block body
7475

7576
div.revisions
7677
h3 Revisions
77-
button#create-revision Create a revision
7878
div
79-
ul#revisions-list
79+
button#create-revision Create a revision
80+
div
81+
ul#revisions-list
8082

8183
//div.trash
8284
// i.fa.fa-trash-o.fa-lg.faded-icon

0 commit comments

Comments
 (0)