Commit ea7bd536 authored by Alain Takoudjou's avatar Alain Takoudjou

Webrunner: Update typography

parent f6f2435f
...@@ -638,6 +638,7 @@ a.lshare img{ ...@@ -638,6 +638,7 @@ a.lshare img{
width: 30px; width: 30px;
height:22px; height:22px;
} }
.list{background: url(../images/menu_dropdown.png) left center no-repeat; padding-left:10px;}
.alert_message{ background: url(../images/alert.png) center no-repeat; height: 26px;} .alert_message{ background: url(../images/alert.png) center no-repeat; height: 26px;}
.error_message{ background: url(../images/exit.png) center no-repeat; height: 26px;} .error_message{ background: url(../images/exit.png) center no-repeat; height: 26px;}
......
slapos/runner/static/images/menu_dropdown.png

221 Bytes | W: | H:

slapos/runner/static/images/menu_dropdown.png

214 Bytes | W: | H:

slapos/runner/static/images/menu_dropdown.png
slapos/runner/static/images/menu_dropdown.png
slapos/runner/static/images/menu_dropdown.png
slapos/runner/static/images/menu_dropdown.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -27,51 +27,11 @@ $(document).ready( function() { ...@@ -27,51 +27,11 @@ $(document).ready( function() {
}); });
}); });
$("#addbranch").click(function(){ $("#addbranch").click(function(){
if($("input#branchname").val() == "" || checkout("1");
$("input#branchname").val() == "Enter the branch name..."){
$("#error").Popup("Please Enter the new branch name", {type:'alert', duration:3000});
return false;
}
var project = $("#project").val();
var branch = $("input#branchname").val();
$.ajax({
type: "POST",
url: $SCRIPT_ROOT + '/newBranch',
data: {project:$("input#workdir").val() + "/" + project, name:branch, create:'1'},
success: function(data){
if(data.code == 1){
$("input#branchname").val("Enter the branch name...");
gitStatus();
}
else{
$("#error").Popup(data.result, {type:'error'});
}
}
});
return false; return false;
}); });
$("#docheckout").click(function(){ $("#docheckout").click(function(){
if($("input#checkout").val() == "" || checkout("0");
$("input#checkout").val() == "Existing branch name..."){
$("#error").Popup("Please Enter your branch name", {type:'alert', duration:3000});
return false;
}
var project = $("#project").val();
var branch = $("input#checkout").val();
$.ajax({
type: "POST",
url: $SCRIPT_ROOT + '/newBranch',
data: {project:$("input#workdir").val() + "/" + project, name:branch, create:'0'},
success: function(data){
if(data.code == 1){
$("input#checkout").val("Existing branch name...");
gitStatus();
}
else{
$("#error").Popup(data.result, {type:'error'});
}
}
});
return false; return false;
}); });
$("#commit").click(function(){ $("#commit").click(function(){
...@@ -102,7 +62,7 @@ $(document).ready( function() { ...@@ -102,7 +62,7 @@ $(document).ready( function() {
gitStatus(); gitStatus();
} }
else{ else{
$("#error").Popup(data.result, {type:'error', duration:5000}); $("#error").Popup(data.result, {type:'error'});
} }
$("#imgwaitting").hide() $("#imgwaitting").hide()
$("#commit").empty(); $("#commit").empty();
...@@ -185,6 +145,30 @@ $(document).ready( function() { ...@@ -185,6 +145,30 @@ $(document).ready( function() {
} }
}); });
} }
function checkout(mode){
if($("input#branchname").val() == "" ||
$("input#branchname").val() == "Enter the branch name..."){
$("#error").Popup("Please Enter the branch name", {type:'alert', duration:3000});
return false;
}
var project = $("#project").val();
var branch = $("input#branchname").val();
$.ajax({
type: "POST",
url: $SCRIPT_ROOT + '/newBranch',
data: {project:$("input#workdir").val() + "/" + project, name:branch, create:mode},
success: function(data){
if(data.code == 1){
$("input#branchname").val("Enter the branch name...");
gitStatus();
}
else{
$("#error").Popup(data.result, {type:'error'});
}
}
});
return false;
}
function loadBranch(branch){ function loadBranch(branch){
$("#activebranch").empty(); $("#activebranch").empty();
for(i=0; i< branch.length; i++){ for(i=0; i< branch.length; i++){
......
...@@ -28,8 +28,8 @@ ...@@ -28,8 +28,8 @@
<div style="background:#fff; padding:10px; min-height:100px; font-size:14px;"> <div style="background:#fff; padding:10px; min-height:100px; font-size:14px;">
<div id="box0"> <div id="box0">
<h2>Clone Repository without using HTTPS and SSH</h2><br/> <h2>Clone Repository without using HTTPS and SSH</h2><br/>
<p>Choose this mode if you have login and password for the repository and you if you don't have the possibility to <p>Choose this mode if you don't have login and password for the repository and you if you don't have the possibility to
use SSH authentication. Otherwise use your public key or your login and password to clone your project. Note use SSH authentication. Otherwise use your public key or your login and password to clone your project by choosing https or ssh mode. Note
that, with readonly mode you can not be able to push your changes.</p> that, with readonly mode you can not be able to push your changes.</p>
<br/> <br/>
</div> </div>
......
...@@ -4,16 +4,16 @@ ...@@ -4,16 +4,16 @@
<div id="home_box"> <div id="home_box">
<div class="inner_box"> <div class="inner_box">
<div class="lmenu"> <div class="lmenu">
<h2><a href="{{ url_for('configRepo')}}">Clone an Repository into your local Workspace</a></h2> <h2><a href="{{ url_for('configRepo')}}">Clone a Repository into your local Workspace</a></h2>
<p>Your repository will be cloned into your project folder, you will need the url of the repository. <p>Your repository will be cloned into your project folder, you will need the url of the repository.
This allows you to open and edit your local project copy and synchonize content with online repository. This allows you to open and edit your local project copy and synchronize content with online repository.
</p> </p>
<img src="{{ url_for('static', filename='images/folder_html.png') }}" /> <img src="{{ url_for('static', filename='images/folder_html.png') }}" />
<div class="clear"></div> <div class="clear"></div>
</div> </div>
<div class="smenu"> <div class="smenu">
<h2><a href="{{ url_for('openProject', method='open')}}">Open Software Release</a></h2> <h2><a href="{{ url_for('openProject', method='open')}}">Open Software Release</a></h2>
<p>Once you have cloned your repository, you can now edit existing Software Release.</p> <p>If you have cloned your repository, you can now edit and test existing Software Release.</p>
<img src="{{ url_for('static', filename='images/mydocuments.png') }}" /> <img src="{{ url_for('static', filename='images/mydocuments.png') }}" />
<div class="clear"></div> <div class="clear"></div>
</div> </div>
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<div class="lmenu"> <div class="lmenu">
<h2><a href="{{ url_for('openProject', method='new')}}">Create your new Software Release</a></h2> <h2><a href="{{ url_for('openProject', method='new')}}">Create your new Software Release</a></h2>
<p>To create a new Software Release, choose the project directory in which you want to create your software. You will then be able to edit and <p>To create a new Software Release, choose the project directory in which you want to create your software. You will then be able to edit and
run the new software release on SlapOS using slapgrid. run the new software release.
</p> </p>
<img src="{{ url_for('static', filename='images/folder_blue.png') }}" /> <img src="{{ url_for('static', filename='images/folder_blue.png') }}" />
<div class="clear"></div> <div class="clear"></div>
......
...@@ -32,12 +32,8 @@ ...@@ -32,12 +32,8 @@
</select> </select>
&nbsp;&nbsp;<label for='branchname'>Branch Name: </label> &nbsp;&nbsp;<label for='branchname'>Branch Name: </label>
<input type="text" name="branchname" id="branchname" size='22' value="Enter the branch name..." /> <input type="text" name="branchname" id="branchname" size='22' value="Enter the branch name..." />
<input type="submit" name="addbranch" id ="addbranch" value="Add" class="button"/> <input type="submit" name="addbranch" id ="addbranch" value="Add" class="button" title='add new branch: git checkout -b branch'/>
<div style="margin-left:166px;"> <input type="submit" name="docheckout" id ="docheckout" value="Checkout" class="button" title='add existing branch: git checkout branch'/>
<label for='checkout'>Checkout existing branch: </label>
<input type="text" name="checkout" id="checkout" size='22' value="Existing branch name..." />
<input type="submit" name="docheckout" id ="docheckout" value="Checkout" class="button"/>
</div>
<br/> <br/>
<!--<label for='pullbranch'>Update your local repository: </label>--> <!--<label for='pullbranch'>Update your local repository: </label>-->
<!--<input type="submit" name="pullbranch" id ="pullbranch" value="Pull" class="button"/>--> <!--<input type="submit" name="pullbranch" id ="pullbranch" value="Pull" class="button"/>-->
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
</pre> </pre>
</div> </div>
<input type=submit value=Update id="save" class="button"> <input type=submit value="Save" id="save" class="button">
</div> </div>
</div> </div>
...@@ -59,8 +59,10 @@ ...@@ -59,8 +59,10 @@
</tr><tr> </tr><tr>
<td class="left"></td> <td class="left"></td>
<td><div class="popup-contents"> <td><div class="popup-contents">
<span class="list">MD5 SUM for the current file</span>
<div style="margin-top:3px; margin-bottom:5px;border-bottom: 1px dashed #666666; heigth:1px"></div>
<a id='getmd5' href="#">Get or Update md5sum</a> <a id='getmd5' href="#">Get or Update md5sum</a>
<br/>Add Project to Develop<br/> <br/><span class="list">Add Project to Develop</span><br/>
<div style="margin-top:3px;border-bottom: 1px dashed #666666; heigth:1px"></div> <div style="margin-top:3px;border-bottom: 1px dashed #666666; heigth:1px"></div>
<ul id="plist"> <ul id="plist">
{% for name in projectList%} {% for name in projectList%}
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<input type="hidden" name="workdir" id="workdir" value="{{workDir}}"/> <input type="hidden" name="workdir" id="workdir" value="{{workDir}}"/>
</div> </div>
</dd> </dd>
<dd><input type=submit value=Update id="save" class="button"></dd> <dd><input type=submit value=Save id="save" class="button"></dd>
</dl> </dl>
</form> </form>
<div class="popup"> <div class="popup">
...@@ -31,8 +31,10 @@ ...@@ -31,8 +31,10 @@
</tr><tr> </tr><tr>
<td class="left"></td> <td class="left"></td>
<td><div class="popup-contents"> <td><div class="popup-contents">
<span class="list">MD5 SUM for the current file</span>
<div style="margin-top:3px; margin-bottom:5px;border-bottom: 1px dashed #666666; heigth:1px"></div>
<a id='getmd5' href="#">Get or Update md5sum</a> <a id='getmd5' href="#">Get or Update md5sum</a>
<br/>Add Project to Develop<br/> <br/><span class="list">Add Project to Develop</span><br/>
<div style="margin-top:3px;border-bottom: 1px dashed #666666; heigth:1px"></div> <div style="margin-top:3px;border-bottom: 1px dashed #666666; heigth:1px"></div>
<ul id="plist"> <ul id="plist">
{% for name in projectList%} {% for name in projectList%}
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<input type="hidden" name="profile" id="profile" value="{{ profile|safe }}" /> <input type="hidden" name="profile" id="profile" value="{{ profile|safe }}" />
<input type="hidden" name="workdir" id="workdir" value="{{workDir}}"/> <input type="hidden" name="workdir" id="workdir" value="{{workDir}}"/>
</dd> </dd>
<dd><input type=submit value=Update id="save" class="button"></dd> <dd><input type=submit value=Save id="save" class="button"></dd>
</dl> </dl>
</form> </form>
<div class="popup"> <div class="popup">
...@@ -31,8 +31,10 @@ ...@@ -31,8 +31,10 @@
</tr><tr> </tr><tr>
<td class="left"></td> <td class="left"></td>
<td><div class="popup-contents"> <td><div class="popup-contents">
<span class="list">MD5 SUM for the current file</span>
<div style="margin-top:3px; margin-bottom:5px;border-bottom: 1px dashed #666666; heigth:1px"></div>
<a id='getmd5' href="#">Get or Update md5sum</a> <a id='getmd5' href="#">Get or Update md5sum</a>
<br/>Add Project to Develop<br/> <br/><span class="list">Add Project to Develop</span><br/>
<div style="margin-top:3px;border-bottom: 1px dashed #666666; heigth:1px"></div> <div style="margin-top:3px;border-bottom: 1px dashed #666666; heigth:1px"></div>
<ul id="plist"> <ul id="plist">
{% for name in projectList%} {% for name in projectList%}
......
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