Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/app/templates/filer.html
diff options
context:
space:
mode:
authorSebastian Silva <sebastian@sugarlabs.org>2011-11-19 14:53:59 (GMT)
committer Sebastian Silva <sebastian@sugarlabs.org>2011-11-19 14:53:59 (GMT)
commit577a105986c7b0752155d763fcdc4f7d68dad8bb (patch)
treef6683c90ab0a5d6b170d32081c99d9da1f498836 /app/templates/filer.html
parentd37af74b9e56d30044b45913afb21a86c9ad2b79 (diff)
Fix UI - add new file
Diffstat (limited to 'app/templates/filer.html')
-rw-r--r--app/templates/filer.html19
1 files changed, 11 insertions, 8 deletions
diff --git a/app/templates/filer.html b/app/templates/filer.html
index 02dc734..2aefc5b 100644
--- a/app/templates/filer.html
+++ b/app/templates/filer.html
@@ -25,15 +25,18 @@
</style>
</head>
<body>
- <div style="position:absolute; height:24px; z-index: -1" class="filer-header">
+ <div style="position:absolute; height:24px; z-index: -1;width:${width}px;" class="filer-header">
</div>
- <div style="height:24px;width:${width}px;" class="filer-header">
- <ul id="icons" style="float:left" class="ui-widget ui-helper-clearfix">
- <li onclick="location='/fileshome/'" class="ui-state-default ui-corner-all"><span class="ui-icon ui-icon-home"></span></li>
+ <div style="height:24px;" class="filer-header">
+ <ul py:if="files != []" id="icons" style="float:left;padding-left:7px;" class="ui-widget ui-helper-clearfix">
+ <li onclick="location='/fileshome/'" class="ui-state-default ui-corner-all" title="Project Home"><span class="ui-icon ui-icon-home"></span></li>
+ <li class="ui-state-default ui-corner-all" title="New Directory"><span class="ui-icon ui-icon-folder-open"></span></li>
+ <li onclick="parent.frame1.location='/edit/'" class="ui-state-default ui-corner-all" title="New File"><span class="ui-icon ui-icon-document"></span></li>
</ul>
- <div style="margin-left:15px;padding-top:7px;">
- <span style="color:gray">[${project_name}]</span>&nbsp;/${absdir}
- </div>
+ <div style="padding-top:7px;width:100%;">
+ <span style="padding-left:10px;color:gray;">[${project_name}]</span>
+ /${absdir}
+ </div>
<!-- ul id="icons" class="ui-widget ui-helper-clearfix">
<li class="ui-state-default ui-corner-all" title=".ui-icon-home"><span class="ui-icon ui-icon-home"></span></li>
</ul-->
@@ -54,7 +57,7 @@
<br/>${file.name}
</a>
</li>
-</ul>
+ </ul>
</div>
<script>
jQuery.fn.center = function () {