Skip to content

Commit 830171b

Browse files
committed
Final Fixes
1 parent 8b5fe2c commit 830171b

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

webapp/autoDeploy/autodeploy/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def clone(request):
123123
token=csrf(request).get("csrf_token")
124124
data="{scm: '%s', ip: '%s', port: '%s', project_name: '%s',csrfmiddlewaretoken: '%s' }" % (project.repo_type,server.ip,server.port,project.name,token)
125125
return render_to_response("base.html", {"project":project,"ajax":True, "data": data, "dataType":"html",
126-
"title":"Cloning "q+ project.name, "function":"clone"}, context_instance=RequestContext(request))
126+
"title":"Cloning "+ project.name, "function":"clone"}, context_instance=RequestContext(request))
127127

128128
@login_required(redirect_field_name="redirect")
129129
@csrf_protect

webapp/autoDeploy/templates/base.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
{% if ajax %}
2424
<script type="text/javascript">
2525
function renderNotification(title,msg) {
26-
body = $("<div>").html( msg.text).text();
26+
body = $("<div>").html( msg).text();
2727
var options = {
2828
body: body,
2929
// image: "{{ STATIC_URL }}img/sdl_logo.png",
3030
icon: "{{ STATIC_URL }}img/logo.png",
3131
badge: "{{ STATIC_URL }}img/logo.png",
32-
timestamp: new Date();
32+
timestamp: new Date(),
3333
}
3434

3535
var n = new Notification(title, options);
@@ -45,9 +45,9 @@
4545
$.ajax({url:"{{ BASE_URL }}api/{{ function }}","method":"GET","dataType":"{{ dataType }}", success:function(data)
4646
{
4747
{{ function }}(data)
48-
{% if function == "clone" %}
48+
{% if function == "clone" %}
4949
renderNotification("Cloned Successfully","Clone of {{ project.name }} done successfully")
50-
{% elif function == "deploy %}
50+
{% elif function == "deploy" %}
5151
renderNotification("Deployed Successfully","Deployment of {{ project.name }} done successfully")
5252

5353
{% endif %}

0 commit comments

Comments
 (0)