diff options
Diffstat (limited to 'studio/templates')
-rw-r--r-- | studio/templates/editor.html | 2 | ||||
-rw-r--r-- | studio/templates/filer.html | 9 | ||||
-rw-r--r-- | studio/templates/index.html | 128 | ||||
-rw-r--r-- | studio/templates/split-view.html | 7 |
4 files changed, 11 insertions, 135 deletions
diff --git a/studio/templates/editor.html b/studio/templates/editor.html index 88e45cb..721a2fb 100644 --- a/studio/templates/editor.html +++ b/studio/templates/editor.html @@ -30,7 +30,7 @@ <input type="hidden" name="filename" id="filename" value="$filename" /> <input type="hidden" name="directory" id="directory" value="$directory" /> <input type="hidden" name="content" id="content" value="ñññ" /> -<input type="button" class="btn" value="Browse" onclick='location.href="/files/$directory"' /> +<!--input type="button" class="btn" value="Browse" onclick='location.href="/files/$directory"' /--> <br/> <input type="submit" value="Save file" /><br/> <input type="button" class="btn" value="Delete file" onclick='location.href="/delete/${filename}"' /> diff --git a/studio/templates/filer.html b/studio/templates/filer.html index 5ca87e7..f03f3ac 100644 --- a/studio/templates/filer.html +++ b/studio/templates/filer.html @@ -39,10 +39,15 @@ <div id="filer" class="bling"> <ul> <li py:for="file in files"> - <a href="${file.href}" class="file"> + <a py:if="file.mode == 'dir'" href="${file.href}" class="file"> <img src="/static/icons/${file.icon}" style="border:none;"/> <br/>${file.name} - </a></li> + </a> + <a py:if="file.mode != 'dir'" target="frame1" href="${file.href}" class="file"> + <img src="/static/icons/${file.icon}" style="border:none;"/> + <br/>${file.name} + </a> + </li> </ul> </div> <script> diff --git a/studio/templates/index.html b/studio/templates/index.html deleted file mode 100644 index 1dd74e5..0000000 --- a/studio/templates/index.html +++ /dev/null @@ -1,128 +0,0 @@ -<!DOCTYPE HTML> -<html lang="en-US"> -<head> - <meta charset="UTF-8" /> - <title></title> - <link rel="stylesheet" href="/static/css/main.css" type="text/css" /> - <link rel="stylesheet" href="/static/css/sugar-theme/jquery-ui-1.8.16.sugar.css" /> - <script src="/static/js/jquery-1.6.2.js" type="text/javascript"></script> - <script src="/static/js/jquery-ui-1.8.16.sugar.min.js" type="text/javascript"></script> - <script src="/static/js/jquery.corner.js" type="text/javascript"></script> - <script src="/static/js/websdk-1.js" type="text/javascript"></script> -</head> -<body> - <div id="content" class="bling"> - <header><h1>WebSDK Studio <span id="beta">Tech Preview 2</span><br /><em style="font-size: 10pt;"> "craftsmanship" </em></h1></header> - <section> - <div style="float:left; width:60%;"> - <div id="accordion"> - <div> - <h3><a href="#">Start with your Logic</a></h3> - <div style="text-align:right"><div style="float:left; padding-right: 15px;"><img src="/static/images/logo-flask-s.png" /></div> - <p>You can build Sugar Activities using standard web technologies with WebSDK. - The controller is where the logic of your Activity is expressed. - At the core of WebSDK there is Flask: a microframework built with good intentions.</p> - <p>The controller is implemented in the <a href="/edit/studio/studio.py">studio.py</a> file. - </p> - <input type="button" - value="Quick Start" onclick='location.href="/static/doc/flask-docs/quickstart.html#quickstart"' /> - <input type="button" - value="Documentation Index" onclick='location.href="/static/doc/flask-docs/index.html"' /> - <input type="button" - value="API" onclick='location.href="/static/doc/flask-docs/api.html#api"' /> - </div> - </div> - <div> - <h3><a href="#">Build your User Experience</a></h3> - <div style="text-align:right"><div style="float:left; padding-right: 15px;"><img src="/static/images/logo-jqueryui.gif" /></div> - <p>Animation, advanced effects and widgets, built using HTML, CSS and Javascript, that you can use to build highly interactive Sugar Activities.</p> - <p>The initial screen for an activity is in <a href="/edit/studio/templates/index.html">index.html</a>. You can browse the <a href="/files/studio/templates">templates</a> directory for other views.</p> - <input type="button" - value="Sugar Web Widgets" onclick='location.href="/static/doc/sugar-theme.html"' /> - </div> - <div> - <h3><a href="#">Deeper in Sugar</a></h3> - <div style="text-align:right"><div style="float:left; padding-right: 15px;"><img src="/static/images/logo-sugar-trans.png" /></div> - <p>This is where you set up your toolbars. If you need further system interaction at a lower level you'll start here.</p> - <p><a href="/edit/activity.py">activity.py</a> contains the browser loader for Sugar.</p> - <input type="button" - value="Make Your Own Sugar Activities" onclick='location.href="static/doc/myosa/ch000_table_of_contents.xhtml"' /> - </div> - </div> - </div> - </div> - </div> - <div id="accordion2" style="width:38%; float:right"> - <div> - <h3><a href="#">${name}</a></h3> - <div> - <div id="filer-header" style="padding-top: 5px; padding-bottom: 5px"> - Frequent actions - </div> - <div id="filer" style="display:inline;"> - <ul> - <li> - <a href="/edit/studio/studio.py" class="file"> - <img src="/static/icons/text-x-python.png" /> - <br />studio.py - </a> - </li> - <li> - <a href="/edit/studio/templates/index.html" class="file"> - <img src="/static/icons/text-uri-list.png" /> - <br />index.html - </a> - </li> - <li> - <a href="/files/studio/templates" class="file"> - <img src="/static/icons/folder.png" /> - <br />templates - </a> - </li> - <li> - <a href="/files/studio/static" class="file"> - <img src="/static/icons/folder.png" /> - <br />static - </a> - </li> - <li> - <a href="/edit/./activity.py" class="file"> - <img src="/static/icons/text-x-python.png" /> - <br />activity.py - </a> - </li> - <li> - <a href="/edit/studio/static/css/main.css" class="file"> - <img src="/static/icons/text-uri-list.png" /> - <br />main.css - </a> - </li> - </ul> - <div style="float:both; width:100%"> - <p style="font-size:8pt;">Running on port ${port}.</p> - </div> - </div> - </div> - <input type="button" value="Split view" onclick='location.href="/split"' /> - </div> - </div> - </section> - </div> - <script> - window.onload = function() { - $('#content').fadeIn(700); - $('.file').corner("15px"); - $('#filer-header').corner("15px"); - $('.bling').show("slow"); - /* if ($.browser.mozilla) { - $('#filer img').hide(); - $('#filer span').show(); - } This was SVG workaround but is broken in older - gecko anyway*/ - $('#beta').delay(1500).fadeIn("slow"); - $("#accordion").accordion({ header: "h3" }); - $("#accordion2").accordion({ header: "h3" }); - } - </script> -</body> -</html> diff --git a/studio/templates/split-view.html b/studio/templates/split-view.html index e23b696..444a460 100644 --- a/studio/templates/split-view.html +++ b/studio/templates/split-view.html @@ -2,9 +2,8 @@ <head> <title>basic frameset</title> </head> - -<frameset rows="50%, *"> - <frame src="${frame1}" /> - <frame src="${frame2}" /> +<frameset rows="*, 155px"> + <frame name="frame1" src="${frame1}" /> + <frame name="frame2" src="${frame2}" /> </frameset> </html> |