Mercurial > pumpbridge
annotate views/index.jade @ 29:34cfa565f565
replace fromESN twitter links with html <a>
author | Mathias Gebbe <mgebbe@intevation.de> |
---|---|
date | Tue, 29 Jul 2014 16:06:05 +0200 |
parents | c5bf4e02958e |
children | 3e3fa35e3ce2 |
rev | line source |
---|---|
0
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
1 doctype html |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
2 html(lang="en") |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
3 head |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
4 title= pageTitle |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
5 |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
6 link(rel='stylesheet', href='/stylesheets/style.css') |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
7 link(rel='icon', href='/images/favicon.ico',type='image/x-icon') |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
8 link(rel='stylesheet', href='/stylesheets/bootstrap.min.css') |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
9 |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
10 // load jquery |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
11 script(src='https://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js') |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
12 |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
13 // load googleplus api |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
14 script(type='text/javascript'). |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
15 (function() { |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
16 var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true; |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
17 po.src = 'https://apis.google.com/js/client:plusone.js'; |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
18 var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s); |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
19 })(); |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
20 |
6
a94ac7c3b182
appId clientid in index.jade, remove logo from index
Mathias Gebbe <mgebbe@intevation.de>
parents:
3
diff
changeset
|
21 |
0
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
22 // load googleplus api sign in |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
23 |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
24 script(type='text/javascript'). |
6
a94ac7c3b182
appId clientid in index.jade, remove logo from index
Mathias Gebbe <mgebbe@intevation.de>
parents:
3
diff
changeset
|
25 |
3 | 26 |
0
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
27 (function() { |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
28 var po = document.createElement('script'); |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
29 po.type = 'text/javascript'; po.async = true; |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
30 po.src = 'https://apis.google.com/js/client:plusone.js?onload=render'; |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
31 var s = document.getElementsByTagName('script')[0]; |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
32 s.parentNode.insertBefore(po, s); |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
33 })(); |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
34 |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
35 /* Executed when the APIs finish loading */ |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
36 function render() { |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
37 |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
38 gapi.signin.render('gp-root', { |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
39 'callback': 'signinCallback', |
15
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
40 'clientid': 'GOOGLEPLUSID.apps.googleusercontent.com', |
0
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
41 'redirecturi': 'postmessage', |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
42 'response_type' : 'code', |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
43 'accesstype': 'offline', |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
44 'approvalprompt': 'force', |
15
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
45 'cookiepolicy': "https://server.example", |
0
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
46 'requestvisibleactions': 'http://schemas.google.com/AddActivity', |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
47 'scope': 'https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/userinfo.email' |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
48 }); |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
49 } |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
50 |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
51 // handle googleplus callback |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
52 |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
53 script(type='text/javascript'). |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
54 function signinCallback(authResult) { |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
55 if (authResult['status']['signed_in']) { |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
56 // Update the app to reflect a signed in user |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
57 // Hide the sign-in button now that the user is authorized, for example: |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
58 //document.getElementById('signinButton').setAttribute('style', 'display: none'); |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
59 //alert('googleplus is ready for bridging'); |
6
a94ac7c3b182
appId clientid in index.jade, remove logo from index
Mathias Gebbe <mgebbe@intevation.de>
parents:
3
diff
changeset
|
60 |
0
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
61 gapi.client.load('plus', 'v1', function() { |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
62 var request = gapi.client.plus.people.get({ |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
63 'userId': 'me' |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
64 }); |
6
a94ac7c3b182
appId clientid in index.jade, remove logo from index
Mathias Gebbe <mgebbe@intevation.de>
parents:
3
diff
changeset
|
65 request.execute(function(resp) { |
a94ac7c3b182
appId clientid in index.jade, remove logo from index
Mathias Gebbe <mgebbe@intevation.de>
parents:
3
diff
changeset
|
66 //alert(JSON.stringify(resp)); |
0
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
67 $('#gpstatus').html('<a href=' + resp.url + '> ' + resp.displayName + '</a>'); |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
68 var token = gapi.auth.getToken(); |
6
a94ac7c3b182
appId clientid in index.jade, remove logo from index
Mathias Gebbe <mgebbe@intevation.de>
parents:
3
diff
changeset
|
69 //alert(JSON.stringify(resp.id)); |
0
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
70 $('#gpid').val(resp.id+'@google'); |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
71 $('#gptoken').val(token.access_token + ';' + token.code); |
6
a94ac7c3b182
appId clientid in index.jade, remove logo from index
Mathias Gebbe <mgebbe@intevation.de>
parents:
3
diff
changeset
|
72 }); |
a94ac7c3b182
appId clientid in index.jade, remove logo from index
Mathias Gebbe <mgebbe@intevation.de>
parents:
3
diff
changeset
|
73 }); |
0
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
74 |
6
a94ac7c3b182
appId clientid in index.jade, remove logo from index
Mathias Gebbe <mgebbe@intevation.de>
parents:
3
diff
changeset
|
75 |
0
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
76 } else { |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
77 // Update the app to reflect a signed out user |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
78 // Possible error values: |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
79 // "user_signed_out" - User is signed-out |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
80 // "access_denied" - User denied access to your app |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
81 // "immediate_failed" - Could not automatically log in the user |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
82 //alert('you cancelled login or did not fully authorize: ' + authResult['error']); |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
83 } |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
84 } |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
85 |
6
a94ac7c3b182
appId clientid in index.jade, remove logo from index
Mathias Gebbe <mgebbe@intevation.de>
parents:
3
diff
changeset
|
86 script. |
3 | 87 // twitter stuff |
88 function getCookie(cname) { | |
89 var name = cname + "="; | |
90 var ca = document.cookie.split(';'); | |
91 for(var i=0; i<ca.length; i++) { | |
92 var c = ca[i].trim(); | |
93 if (c.indexOf(name) == 0) return c.substring(name.length,c.length); | |
94 } | |
95 return ""; | |
96 } | |
6
a94ac7c3b182
appId clientid in index.jade, remove logo from index
Mathias Gebbe <mgebbe@intevation.de>
parents:
3
diff
changeset
|
97 |
a94ac7c3b182
appId clientid in index.jade, remove logo from index
Mathias Gebbe <mgebbe@intevation.de>
parents:
3
diff
changeset
|
98 |
0
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
99 // load facebook api |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
100 script. |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
101 $(document).ready(function () { |
15
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
102 var usermapfb="#{usermapfb}"; |
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
103 var usermaptw="#{usermaptw}"; |
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
104 var usermapgp="#{usermapgp}"; |
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
105 |
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
106 if(usermapfb == 'true'){ |
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
107 $('#fbloginbutton2').addClass('hide'); |
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
108 $('#fbdeletebutton').removeClass('hide'); |
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
109 }else{ |
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
110 $('#fbloginbutton2').removeClass('hide'); |
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
111 $('#fbdeletebutton').addClass('hide'); |
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
112 } |
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
113 if(usermaptw == 'true'){ |
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
114 $('#twloginbutton2').addClass('hide'); |
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
115 $('#twdeletebutton').removeClass('hide'); |
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
116 }else{ |
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
117 $('#twloginbutton2').removeClass('hide'); |
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
118 $('#twdeletebutton').addClass('hide'); |
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
119 } |
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
120 if(usermapgp == 'true'){ |
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
121 $('#gploginbutton2').addClass('hide'); |
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
122 $('#gpdeletebutton').removeClass('hide'); |
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
123 }else{ |
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
124 $('#gploginbutton2').removeClass('hide'); |
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
125 $('#gpdeletebutton').addClass('hide'); |
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
126 } |
6
a94ac7c3b182
appId clientid in index.jade, remove logo from index
Mathias Gebbe <mgebbe@intevation.de>
parents:
3
diff
changeset
|
127 |
a94ac7c3b182
appId clientid in index.jade, remove logo from index
Mathias Gebbe <mgebbe@intevation.de>
parents:
3
diff
changeset
|
128 var twstatus = getCookie('twitterid') |
a94ac7c3b182
appId clientid in index.jade, remove logo from index
Mathias Gebbe <mgebbe@intevation.de>
parents:
3
diff
changeset
|
129 if (twstatus != "") $('#twstatus').html('<a href=https://twitter.com/account/redirect_by_id/' + twstatus + '> ' + getCookie('twitteruser') + '</a>'); |
a94ac7c3b182
appId clientid in index.jade, remove logo from index
Mathias Gebbe <mgebbe@intevation.de>
parents:
3
diff
changeset
|
130 |
0
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
131 $.ajaxSetup({ |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
132 cache: true |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
133 }); |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
134 |
12
f190abf340ef
fixed some problems with facebook (caused by developers.facebook.com) removed fql :D
Mathias Gebbe <mgebbe@intevation.de>
parents:
11
diff
changeset
|
135 $.getScript('//connect.facebook.net/de_DE/all.js', function () { |
0
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
136 FB.init({ |
15
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
137 appId: 'FACEBOOKID', |
12
f190abf340ef
fixed some problems with facebook (caused by developers.facebook.com) removed fql :D
Mathias Gebbe <mgebbe@intevation.de>
parents:
11
diff
changeset
|
138 status: true |
0
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
139 }); |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
140 |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
141 FB.getLoginStatus(function(response) { |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
142 if (response.status === 'connected') { |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
143 // the user is logged in and has authenticated your |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
144 // app, and response.authResponse supplies |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
145 // the user's ID, a valid access token, a signed |
6
a94ac7c3b182
appId clientid in index.jade, remove logo from index
Mathias Gebbe <mgebbe@intevation.de>
parents:
3
diff
changeset
|
146 // request, and the time the access token |
0
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
147 // and signed request each expire |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
148 var uid = response.authResponse.userID; |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
149 var accessToken = response.authResponse.accessToken; |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
150 $('#fbtoken').val(accessToken); |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
151 FB.api('/me', function(response) { |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
152 $('#fbstatus').html('<a href=//facebook.com/' + response.id + '> ' + response.name + '</a>'); |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
153 $('#fbid').val(response.id+'@facebook'); |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
154 }); |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
155 } else if (response.status === 'not_authorized') { |
6
a94ac7c3b182
appId clientid in index.jade, remove logo from index
Mathias Gebbe <mgebbe@intevation.de>
parents:
3
diff
changeset
|
156 // the user is logged in to Facebook, |
0
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
157 // but has not authenticated your app |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
158 $('#fbstatus').html('not authorized'); |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
159 } else { |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
160 // the user isn't logged in to Facebook. |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
161 $('#fbstatus').html('not logged in'); |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
162 } |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
163 }); |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
164 }); |
6
a94ac7c3b182
appId clientid in index.jade, remove logo from index
Mathias Gebbe <mgebbe@intevation.de>
parents:
3
diff
changeset
|
165 |
0
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
166 $('.fbloginbutton').on('click', function(e){ |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
167 FB.login(function(response) { |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
168 if (response.authResponse) { |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
169 FB.api('/me', function(response) { |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
170 //document.getElementById("logoutbutton").disabled = false; |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
171 }); |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
172 } else { |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
173 //Not logged in |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
174 //alert('you cancelled login or did not fully authorize.'); |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
175 } |
12
f190abf340ef
fixed some problems with facebook (caused by developers.facebook.com) removed fql :D
Mathias Gebbe <mgebbe@intevation.de>
parents:
11
diff
changeset
|
176 }, {scope: 'publish_actions,publish_stream,read_stream,read_friendlists,user_likes,user_friends,user_activities,user_status'}); |
0
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
177 }) |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
178 |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
179 //$('.logoutbutton').on('click', function(e){ |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
180 // FB.logout(); |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
181 // }) |
6
a94ac7c3b182
appId clientid in index.jade, remove logo from index
Mathias Gebbe <mgebbe@intevation.de>
parents:
3
diff
changeset
|
182 $('#pumpobj').val(JSON.stringify(!{JSON.stringify(user)})); |
0
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
183 }); |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
184 |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
185 body |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
186 block content |
6
a94ac7c3b182
appId clientid in index.jade, remove logo from index
Mathias Gebbe <mgebbe@intevation.de>
parents:
3
diff
changeset
|
187 .main |
15
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
188 .headlinebox |
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
189 img(class="ribbon", src="/images/ribbonl.png") |
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
190 h1(class='headline') pumpbridge.<br>connecting social networks |
7
2123f355ab68
go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
191 #pump-root.pump-root |
2123f355ab68
go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
192 h4 |
15
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
193 | logged in as: |
7
2123f355ab68
go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
194 a(id='pumpstatus',class='pumpstatus',href=user.homepage)=user.id |
2123f355ab68
go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
195 #fb.fb |
2123f355ab68
go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
196 #fb-root.fb-root |
2123f355ab68
go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
197 input(id='fbloginbutton',type='image',class='fbloginbutton',value='fbLogin',src='images/fb.svg',width='100px',height='100px') |
2123f355ab68
go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
198 #fb-info.fb-info |
2123f355ab68
go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
199 i(id='fbstatus') not logged in |
2123f355ab68
go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
200 br |
2123f355ab68
go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
201 form(class='',action='/bridge',method='post') |
2123f355ab68
go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
202 input(id='fbdeleted',name='fbdelete',hidden='true',value=user.id) |
15
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
203 button(id='fbdeletebutton',type='submit',class='btn btn-default btn-xs',hidden='true') |
7
2123f355ab68
go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
204 | delete credentials |
15
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
205 button(id='fbloginbutton2',name='fbloginbutton2',class='btn btn-default btn-xs',onClick='$("#fbloginbutton").click()') |
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
206 | add credentials |
7
2123f355ab68
go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
207 #gp.gp |
2123f355ab68
go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
208 #gp-root.gp-root |
2123f355ab68
go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
209 input(id='gploginbutton',type='image',class='gploginbutton',value='gpLogin',src='images/gp.svg',width='100px',height='100px') |
2123f355ab68
go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
210 #gp-info.gp-info |
2123f355ab68
go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
211 i(id='gpstatus') not logged in |
2123f355ab68
go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
212 br |
2123f355ab68
go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
213 form(class='',action='/bridge',method='post') |
2123f355ab68
go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
214 input(id='gpdeleted',name='gpdelete',hidden='true',value=user.id) |
15
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
215 button(name='gpdeletebutton',id='gpdeletebutton',type='submit',class='btn btn-default btn-xs') |
7
2123f355ab68
go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
216 | delete credentials |
15
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
217 button(id='gploginbutton2',name='gploginbutton2',class='btn btn-default btn-xs',onClick='$("#gploginbutton").click()') |
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
218 | add credentials |
7
2123f355ab68
go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
219 #tw.tw |
2123f355ab68
go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
220 #tw-root.tw-root |
2123f355ab68
go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
221 a(href='/add-account'): input(type='image',value='twitterlogin',src='images/twitter.svg',width='100px',height='100px') |
2123f355ab68
go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
222 #tw-info.tw-info |
2123f355ab68
go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
223 i(id='twstatus') not logged in |
2123f355ab68
go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
224 br |
2123f355ab68
go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
225 form(class='',action='/bridge',method='post') |
2123f355ab68
go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
226 input(id='twdeleted',name='twdelete',hidden='true',value=user.id) |
15
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
227 button(id='twdeletebutton',type='submit',class='btn btn-default btn-xs') |
7
2123f355ab68
go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
228 | delete credentials |
15
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
229 button(id='twloginbutton2',name='twloginbutton2',type='submit',class='btn btn-default btn-xs',onClick='location.href="/add-account"') |
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
230 | add credentials |
7
2123f355ab68
go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
231 form(class='',action='/bridge',method='post') |
6
a94ac7c3b182
appId clientid in index.jade, remove logo from index
Mathias Gebbe <mgebbe@intevation.de>
parents:
3
diff
changeset
|
232 input(id='pumpid',name='pumpid',hidden='true',value=user.id) |
a94ac7c3b182
appId clientid in index.jade, remove logo from index
Mathias Gebbe <mgebbe@intevation.de>
parents:
3
diff
changeset
|
233 input(id='pumptoken',name='pumptoken',hidden='true', value=user.token) |
a94ac7c3b182
appId clientid in index.jade, remove logo from index
Mathias Gebbe <mgebbe@intevation.de>
parents:
3
diff
changeset
|
234 input(id='pumpsecret',name='pumpsecret',hidden='true', value=user.secret) |
a94ac7c3b182
appId clientid in index.jade, remove logo from index
Mathias Gebbe <mgebbe@intevation.de>
parents:
3
diff
changeset
|
235 input(id='pumpobj',name='pumpobj', hidden='true' value='') |
0
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
236 input(id='fbid',name='fbid',hidden='true') |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
237 input(id='fbtoken',name='fbtoken',hidden='true') |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
238 input(id='gpid',name='gpid',hidden='true') |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
239 input(id='gptoken',name='gptoken',hidden='true',size=100) |
3 | 240 br |
15
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
241 | you need to extra save the credentials |
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
242 br |
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
243 | for facebook and googleplus |
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
244 br |
7
2123f355ab68
go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents:
6
diff
changeset
|
245 input(type='submit',class='btn btn-default',value='save credentials') |
0
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
246 .footer |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
247 #logout.logout |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
248 //input(id='logoutbutton',type='button',class='logoutbutton',value='Logout',disabled) |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
249 form(class='',action='/logout',method='post') |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
250 input(type='submit',class='btn btn-default',value='logout') |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
251 br |
b73191efc65b
Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff
changeset
|
252 p. |
15
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
253 <a href=https://wald.intevation.org/hg/pumpbridge/>pumpbridge</a> is Free Software and available under the Apache License 2.0. |
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
254 <br> |
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
255 visit <a href=https://wald.intevation.org/projects/pumpbridge/>https://wald.intevation.org/projects/pumpbridge</a> for more informations! |
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
256 <br> |
c5bf4e02958e
add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents:
12
diff
changeset
|
257 pumpbridge is hosted and operated by <a href=https://io.intevation.de/mgebbe>Mathias Gebbe</a> <a href=/contact.html>(Contact)</a> <br> |