Commit 81f046c3 authored by Alain Takoudjou's avatar Alain Takoudjou Committed by Nicolas Wavrant

keep in mind last opened file and manage favourites files

parent 58044d23
...@@ -43,9 +43,10 @@ ...@@ -43,9 +43,10 @@
<ul class='box_header'> <ul class='box_header'>
<li id="switch"><span class="swith_btn" title="Switch between differents file source">This project</span></li> <li id="switch"><span class="swith_btn" title="Switch between differents file source">This project</span></li>
<li id="save"><span class="save_btn" title="Save current file. Hint: Use Ctrl+S">Save</span></li> <li id="save"><span class="save_btn" title="Save current file. Hint: Use Ctrl+S">Save</span></li>
<li id="flist"><span class="flist_btn" id="filelist" title="Recently opened files and favourites" rel='tooltip'>&nbsp;</span></li>
<li> <li>
<h2> <h2>
<a style="display:none" id='option' href='#' rel='tooltip' title='Show more option'>[Current file]</a><span id="edit_info">No file in editor</span> <a style="display:none" id='option' href='#' rel='tooltip' title='Show more option'>[Menu]</a><span id="edit_info">No file in editor</span>
<span id="edit_status"></span> <span id="edit_status"></span>
</h2> </h2>
</li> </li>
...@@ -66,7 +67,7 @@ ...@@ -66,7 +67,7 @@
<pre id="editor"> <pre id="editor">
</pre> </pre>
</div> </div>
<!--<input type=submit value="Save" id="save" class="button">--> <!--<input type=submit value="Save" id="save" class="button">-->
</div> </div>
...@@ -74,18 +75,30 @@ ...@@ -74,18 +75,30 @@
<div class="clear"></div> <div class="clear"></div>
<div id="file_info" class="file_info"><span id="info"></span></div> <div id="file_info" class="file_info"><span id="info"></span></div>
</form> </form>
<div id="tooltip-option" style="display:none"> <div id="tooltip-option" style="display:none">
<span class="list first-list">MD5 SUM for the current file</span> <span class="list first-list">Current file Menu</span>
<a id='getmd5' href="#">Get or Update md5sum</a> <a id='getmd5' href="#">Get or Update md5sum</a>
<div class="sep"></div> <a id='addflist' href="#">Add to favourites</a>
<span class="list">Add project development</span> <div class="sep"></div>
<ul id="plist"> <span class="list">Add project development</span>
{% for name in projectList%} <ul id="plist">
<li><input type="checkbox" name="develop" value="{{name}}" id="{{name}}"> {% for name in projectList%}
<label>{{name}}</label></li> <li><input type="checkbox" name="develop" value="{{name}}" id="{{name}}">
{% endfor %} <label>{{name}}</label></li>
{% endfor %}
</ul>
<a href="#" id="adddevelop" class="lshare">Add to profile</a>
</div>
<div id="tooltip-filelist" style="display:none">
<div style="min-width: 190px; padding-bottom:10px;">
<span class="list first-list">All your favourite files</span>
<ul class="inline">
<li>Your favourites files list is <br/>empty for the moment!</li>
</ul> </ul>
<a href="#" id="adddevelop" class="lshare">Add to profile</a> </div>
</div> </div>
<!-- This contains the hidden content for inline calls --> <!-- This contains the hidden content for inline calls -->
......
...@@ -116,7 +116,7 @@ def editSoftwareProfile(): ...@@ -116,7 +116,7 @@ def editSoftwareProfile():
if profile == "": if profile == "":
flash('Error: can not open profile, please select your project first') flash('Error: can not open profile, please select your project first')
return render_template('updateSoftwareProfile.html', workDir='workspace', return render_template('updateSoftwareProfile.html', workDir='workspace',
profile=profile, projectList=getProjectList(app.config['workspace'])) profile=profile, projectList=listFolder(app.config, 'workspace'))
def inspectSoftware(): def inspectSoftware():
...@@ -159,7 +159,7 @@ def editInstanceProfile(): ...@@ -159,7 +159,7 @@ def editInstanceProfile():
if profile == "": if profile == "":
flash('Error: can not open instance profile for this Software Release') flash('Error: can not open instance profile for this Software Release')
return render_template('updateInstanceProfile.html', workDir='workspace', return render_template('updateInstanceProfile.html', workDir='workspace',
profile=profile, projectList=getProjectList(app.config['workspace'])) profile=profile, projectList=listFolder(app.config, 'workspace'))
# get status of all computer partitions and process state # get status of all computer partitions and process state
...@@ -640,7 +640,7 @@ def fileBrowser(): ...@@ -640,7 +640,7 @@ def fileBrowser():
def editFile(): def editFile():
return render_template('editFile.html', workDir='workspace', return render_template('editFile.html', workDir='workspace',
profile=urllib.unquote(request.args.get('profile', '')), profile=urllib.unquote(request.args.get('profile', '')),
projectList=getProjectList(app.config['workspace']), projectList=listFolder(app.config, 'workspace'),
filename=urllib.unquote(request.args.get('filename', ''))) filename=urllib.unquote(request.args.get('filename', '')))
def shell(): def shell():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment