Skip to content
Permalink
Browse files

Add current path to "Back" button in file list

Closes #1712
  • Loading branch information...
foosel committed Feb 24, 2017
1 parent aab98a7 commit 755bcaa311c23b019991e1840b08dfa45fe276a1

Large diffs are not rendered by default.

@@ -580,6 +580,16 @@ ul.dropdown-menu li a {
animation: highlightframes 2s;
}
}

.back {
.back-path {
white-space: nowrap;
span {
word-wrap: break-word;
white-space: pre-line;
}
}
}
}

.upload-buttons {
@@ -2,7 +2,10 @@
<input type="text" class="input-block search-query" data-bind="value: searchQuery, valueUpdate: 'input'" placeholder="{{ _('Search...') }}">
</form>
<div class="gcode_files">
<div class="entry back clickable" data-bind="visible: currentPath() != '', click: function() { $root.navigateUp(); }" style="display: none"><i class="icon-arrow-left"></i> {{ _('Back') }}</div>
<div class="entry back clickable" data-bind="visible: currentPath() != '', click: function() { $root.navigateUp(); }" style="display: none">
<div class="back-arrow"><i class="icon-arrow-left"></i> {{ _('Back') }}</div>
<div class="back-path"><small class="muted">{{ _('Currently in') }} <span data-bind="text: currentPath"></span></small></div>
</div>

<!-- ko slimScrolledForeach: filesAndFolders -->
<div class="entry" data-bind="attr: { id: $root.getEntryId($data) }, template: { name: $root.templateFor($data), data: $data }, css: $data.type"></div>

0 comments on commit 755bcaa

Please sign in to comment.
You can’t perform that action at this time.