Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
work.w
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
30
Issues
30
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
osp
work.w
Commits
13ff76d8
Commit
13ff76d8
authored
Mar 29, 2018
by
gijs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Started to implement Pierres layout changes.
parent
20a8ae8c
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
206 additions
and
116 deletions
+206
-116
playground/static/playground/css/styles.css
playground/static/playground/css/styles.css
+187
-97
playground/static/playground/js/views.js
playground/static/playground/js/views.js
+7
-5
playground/templates/playground/underscore/node-vue.mtpl
playground/templates/playground/underscore/node-vue.mtpl
+1
-1
playground/templates/playground/underscore/score-vue.mtpl
playground/templates/playground/underscore/score-vue.mtpl
+11
-13
No files found.
playground/static/playground/css/styles.css
View file @
13ff76d8
This diff is collapsed.
Click to expand it.
playground/static/playground/js/views.js
View file @
13ff76d8
...
...
@@ -861,7 +861,7 @@ window.W = window.W || {};
//show mainline nodes if they are present
if
(
sublines
.
length
)
{
var
sublinesView
=
new
W
.
TreeView
({
collection
:
sublines
});
this
.
$el
.
attr
(
"
data-sublines
"
,
"
true
"
);
this
.
showChildView
(
'
tree
'
,
sublinesView
);
}
}
...
...
@@ -1026,7 +1026,9 @@ window.W = window.W || {};
'
save
'
:
'
.save
'
,
'
edit
'
:
'
.edit
'
,
'
expandLevel
'
:
'
[name="expand-level"]
'
,
'
scoreMeta
'
:
'
.score-meta
'
'
scoreMeta
'
:
'
.score-meta
'
,
'
title
'
:
'
#title
'
,
'
sidebar
'
:
'
#sidebar
'
},
events
:
{
...
...
@@ -1038,7 +1040,7 @@ window.W = window.W || {};
'
click .fold
'
:
'
fold
'
,
'
change @ui.expandLevel
'
:
'
expandUntill
'
,
'
click [data-name="export"]
'
:
'
downloadAsJSON
'
,
'
click
.score-meta-expand-togg
le
'
:
'
toggleMeta
'
'
click
@ui.tit
le
'
:
'
toggleMeta
'
},
childViewEvents
:
{
...
...
@@ -1222,7 +1224,7 @@ window.W = window.W || {};
toggleMeta
:
function
()
{
this
.
metaExpanded
=
!
this
.
metaExpanded
;
this
.
ui
.
s
coreMeta
.
attr
(
'
data-expanded
'
,
this
.
metaExpanded
);
this
.
ui
.
s
idebar
.
attr
(
'
data-expanded
'
,
this
.
metaExpanded
);
}
});
...
...
@@ -1516,7 +1518,7 @@ window.W = window.W || {};
'
click @ui.toggle
'
:
'
toggle
'
,
},
onToggle
:
function
()
{
onToggle
:
function
()
{
this
.
$el
.
toggleClass
(
'
main-header--collapsed
'
);
}
});
...
...
playground/templates/playground/underscore/node-vue.mtpl
View file @
13ff76d8
...
...
@@ -30,7 +30,7 @@
<% } %>
<!-- More visible aleternative, bullet: ∙ -->
<span class="axis-title-edit"><%- title %><
% if (!hasSublines) { %>.<% } %
></span>
<span class="axis-title-edit"><%- title %><
!-- <% if (!hasSublines) { %>.<% } %> --
></span>
<span class="axis-inline-title-form"></span>
...
...
playground/templates/playground/underscore/score-vue.mtpl
View file @
13ff76d8
<div id="main-area">
<div id="expand-level-slider"></div>
<div id="axis-wrapper">
<ol></ol>
</div>
</div>
<header id="sidebar">
<header id="sidebar" data-expanded="<%- metaExpanded %>">
<div class="score-actions">
<button class="save" data-label-progress="Saving..." data-label="Enregistrer" <% if (!hasChanges) { %>disabled<% } %>>Enregistrer</button>
<button class="duplicate">Dupliquer</button>
<button class="delete">Supprimer</button>
<button class="edit score-edit">Éditer</button>
<button data-name="export">Export</button>
</div>
<h1 id="title"><%- title %></h1>
<dl class="score-meta"
data-expanded="<%- metaExpanded %>"
>
<dl class="score-meta">
<% if (presentation) { %>
<dt>Présentation</dt>
<dd><%- presentation %></dd>
...
...
@@ -99,12 +93,16 @@
<dt class="extended">Modifié le</dt>
<dd class="extended"><%- formatTimestamp(updated_at) %></dd>
<
dt class="score-meta-expand-toggle"></dt
>
<
!-- <dt class="score-meta-expand-toggle"></dt> --
>
</dl>
<button class="edit score-edit">Éditer</button>
<button data-name="export">Export</button>
<form></form>
</header>
<div id="main-area">
<div id="expand-level-slider"></div>
<div id="axis-wrapper">
<ol></ol>
</div>
</div>
\ No newline at end of file
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