annotate views/index.jade @ 32:ca0b44c1a870 tip

Readme: twitter in the summary, it is best working currently.
author Bernhard Reiter <bernhard@intevation.de>
date Mon, 13 Oct 2014 13:22:17 +0200
parents 3e3fa35e3ce2
children
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
98a070c98982 add Twitter support
Mathias Gebbe <mgebbe@intevation.de>
parents: 0
diff changeset
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',
30
3e3fa35e3ce2 twitter sync likes, recommend mongodb
Mathias Gebbe <mgebbe@intevation.de>
parents: 15
diff changeset
45 'cookiepolicy': "https://pumpbridge.me",
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
98a070c98982 add Twitter support
Mathias Gebbe <mgebbe@intevation.de>
parents: 0
diff changeset
87 // twitter stuff
98a070c98982 add Twitter support
Mathias Gebbe <mgebbe@intevation.de>
parents: 0
diff changeset
88 function getCookie(cname) {
98a070c98982 add Twitter support
Mathias Gebbe <mgebbe@intevation.de>
parents: 0
diff changeset
89 var name = cname + "=";
98a070c98982 add Twitter support
Mathias Gebbe <mgebbe@intevation.de>
parents: 0
diff changeset
90 var ca = document.cookie.split(';');
98a070c98982 add Twitter support
Mathias Gebbe <mgebbe@intevation.de>
parents: 0
diff changeset
91 for(var i=0; i<ca.length; i++) {
98a070c98982 add Twitter support
Mathias Gebbe <mgebbe@intevation.de>
parents: 0
diff changeset
92 var c = ca[i].trim();
98a070c98982 add Twitter support
Mathias Gebbe <mgebbe@intevation.de>
parents: 0
diff changeset
93 if (c.indexOf(name) == 0) return c.substring(name.length,c.length);
98a070c98982 add Twitter support
Mathias Gebbe <mgebbe@intevation.de>
parents: 0
diff changeset
94 }
98a070c98982 add Twitter support
Mathias Gebbe <mgebbe@intevation.de>
parents: 0
diff changeset
95 return "";
98a070c98982 add Twitter support
Mathias Gebbe <mgebbe@intevation.de>
parents: 0
diff changeset
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
30
3e3fa35e3ce2 twitter sync likes, recommend mongodb
Mathias Gebbe <mgebbe@intevation.de>
parents: 15
diff changeset
131 var twfromesn = "#{twfromesn}";
3e3fa35e3ce2 twitter sync likes, recommend mongodb
Mathias Gebbe <mgebbe@intevation.de>
parents: 15
diff changeset
132 var twtoesn = "#{twtoesn}";
3e3fa35e3ce2 twitter sync likes, recommend mongodb
Mathias Gebbe <mgebbe@intevation.de>
parents: 15
diff changeset
133
3e3fa35e3ce2 twitter sync likes, recommend mongodb
Mathias Gebbe <mgebbe@intevation.de>
parents: 15
diff changeset
134
3e3fa35e3ce2 twitter sync likes, recommend mongodb
Mathias Gebbe <mgebbe@intevation.de>
parents: 15
diff changeset
135 if (twtoesn == "true") $("#twtoesn").prop("checked", true);
3e3fa35e3ce2 twitter sync likes, recommend mongodb
Mathias Gebbe <mgebbe@intevation.de>
parents: 15
diff changeset
136 else $("#twtoesn").prop("checked", false);
3e3fa35e3ce2 twitter sync likes, recommend mongodb
Mathias Gebbe <mgebbe@intevation.de>
parents: 15
diff changeset
137
3e3fa35e3ce2 twitter sync likes, recommend mongodb
Mathias Gebbe <mgebbe@intevation.de>
parents: 15
diff changeset
138 if (twfromesn == "true") $("#twfromesn").prop("checked", true);
3e3fa35e3ce2 twitter sync likes, recommend mongodb
Mathias Gebbe <mgebbe@intevation.de>
parents: 15
diff changeset
139 else $("#twfromesn").prop("checked", false);
3e3fa35e3ce2 twitter sync likes, recommend mongodb
Mathias Gebbe <mgebbe@intevation.de>
parents: 15
diff changeset
140
0
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
141 $.ajaxSetup({
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
142 cache: true
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
143 });
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
144
12
f190abf340ef fixed some problems with facebook (caused by developers.facebook.com) removed fql :D
Mathias Gebbe <mgebbe@intevation.de>
parents: 11
diff changeset
145 $.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
146 FB.init({
15
c5bf4e02958e add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents: 12
diff changeset
147 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
148 status: true
0
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
149 });
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
150
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
151 FB.getLoginStatus(function(response) {
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
152 if (response.status === 'connected') {
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
153 // 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
154 // app, and response.authResponse supplies
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
155 // 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
156 // request, and the time the access token
0
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
157 // and signed request each expire
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
158 var uid = response.authResponse.userID;
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
159 var accessToken = response.authResponse.accessToken;
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
160 $('#fbtoken').val(accessToken);
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
161 FB.api('/me', function(response) {
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
162 $('#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
163 $('#fbid').val(response.id+'@facebook');
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
164 });
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
165 } 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
166 // the user is logged in to Facebook,
0
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
167 // but has not authenticated your app
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
168 $('#fbstatus').html('not authorized');
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
169 } else {
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
170 // the user isn't logged in to Facebook.
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
171 $('#fbstatus').html('not logged in');
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
172 }
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
173 });
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
174 });
6
a94ac7c3b182 appId clientid in index.jade, remove logo from index
Mathias Gebbe <mgebbe@intevation.de>
parents: 3
diff changeset
175
0
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
176 $('.fbloginbutton').on('click', function(e){
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
177 FB.login(function(response) {
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
178 if (response.authResponse) {
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
179 FB.api('/me', function(response) {
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
180 //document.getElementById("logoutbutton").disabled = false;
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
181 });
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
182 } else {
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
183 //Not logged in
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
184 //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
185 }
12
f190abf340ef fixed some problems with facebook (caused by developers.facebook.com) removed fql :D
Mathias Gebbe <mgebbe@intevation.de>
parents: 11
diff changeset
186 }, {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
187 })
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
188
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
189 //$('.logoutbutton').on('click', function(e){
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
190 // FB.logout();
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
191 // })
6
a94ac7c3b182 appId clientid in index.jade, remove logo from index
Mathias Gebbe <mgebbe@intevation.de>
parents: 3
diff changeset
192 $('#pumpobj').val(JSON.stringify(!{JSON.stringify(user)}));
0
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
193 });
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
194
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
195 body
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
196 block content
6
a94ac7c3b182 appId clientid in index.jade, remove logo from index
Mathias Gebbe <mgebbe@intevation.de>
parents: 3
diff changeset
197 .main
15
c5bf4e02958e add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents: 12
diff changeset
198 .headlinebox
c5bf4e02958e add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents: 12
diff changeset
199 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
200 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
201 #pump-root.pump-root
2123f355ab68 go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents: 6
diff changeset
202 h4
15
c5bf4e02958e add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents: 12
diff changeset
203 | logged in as:&nbsp;
7
2123f355ab68 go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents: 6
diff changeset
204 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
205 #fb.fb
2123f355ab68 go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents: 6
diff changeset
206 #fb-root.fb-root
2123f355ab68 go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents: 6
diff changeset
207 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
208 #fb-info.fb-info
2123f355ab68 go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents: 6
diff changeset
209 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
210 br
2123f355ab68 go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents: 6
diff changeset
211 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
212 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
213 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
214 | delete credentials
15
c5bf4e02958e add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents: 12
diff changeset
215 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
216 | add credentials
7
2123f355ab68 go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents: 6
diff changeset
217 #gp.gp
2123f355ab68 go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents: 6
diff changeset
218 #gp-root.gp-root
2123f355ab68 go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents: 6
diff changeset
219 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
220 #gp-info.gp-info
2123f355ab68 go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents: 6
diff changeset
221 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
222 br
2123f355ab68 go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents: 6
diff changeset
223 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
224 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
225 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
226 | delete credentials
15
c5bf4e02958e add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents: 12
diff changeset
227 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
228 | add credentials
7
2123f355ab68 go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents: 6
diff changeset
229 #tw.tw
2123f355ab68 go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents: 6
diff changeset
230 #tw-root.tw-root
2123f355ab68 go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents: 6
diff changeset
231 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
232 #tw-info.tw-info
2123f355ab68 go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents: 6
diff changeset
233 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
234 br
30
3e3fa35e3ce2 twitter sync likes, recommend mongodb
Mathias Gebbe <mgebbe@intevation.de>
parents: 15
diff changeset
235 if usermaptw
3e3fa35e3ce2 twitter sync likes, recommend mongodb
Mathias Gebbe <mgebbe@intevation.de>
parents: 15
diff changeset
236 form(class='',action='/bridge',method='post')
3e3fa35e3ce2 twitter sync likes, recommend mongodb
Mathias Gebbe <mgebbe@intevation.de>
parents: 15
diff changeset
237 input(id='twmode',name='twmode',hidden='true',value=user.id)
3e3fa35e3ce2 twitter sync likes, recommend mongodb
Mathias Gebbe <mgebbe@intevation.de>
parents: 15
diff changeset
238 input(id='twtoesn',name='twtoesn',type='checkbox',value='pump2twitter')
3e3fa35e3ce2 twitter sync likes, recommend mongodb
Mathias Gebbe <mgebbe@intevation.de>
parents: 15
diff changeset
239 | pump2twitter
3e3fa35e3ce2 twitter sync likes, recommend mongodb
Mathias Gebbe <mgebbe@intevation.de>
parents: 15
diff changeset
240 br
3e3fa35e3ce2 twitter sync likes, recommend mongodb
Mathias Gebbe <mgebbe@intevation.de>
parents: 15
diff changeset
241 input(id='twfromesn',name='twfromesn',type='checkbox',value='twitter2pump')
3e3fa35e3ce2 twitter sync likes, recommend mongodb
Mathias Gebbe <mgebbe@intevation.de>
parents: 15
diff changeset
242 | twitter2pump
3e3fa35e3ce2 twitter sync likes, recommend mongodb
Mathias Gebbe <mgebbe@intevation.de>
parents: 15
diff changeset
243 br
3e3fa35e3ce2 twitter sync likes, recommend mongodb
Mathias Gebbe <mgebbe@intevation.de>
parents: 15
diff changeset
244 button(id='twsavemode',type='submit',class='btn btn-default btn-xs')
3e3fa35e3ce2 twitter sync likes, recommend mongodb
Mathias Gebbe <mgebbe@intevation.de>
parents: 15
diff changeset
245 | save modus
3e3fa35e3ce2 twitter sync likes, recommend mongodb
Mathias Gebbe <mgebbe@intevation.de>
parents: 15
diff changeset
246 br
7
2123f355ab68 go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents: 6
diff changeset
247 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
248 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
249 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
250 | delete credentials
30
3e3fa35e3ce2 twitter sync likes, recommend mongodb
Mathias Gebbe <mgebbe@intevation.de>
parents: 15
diff changeset
251 button(id='twloginbutton2',name='twloginbutton2',type='submit',class='btn btn-default btn-xs',onClick='location.href="/add-account"')
15
c5bf4e02958e add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents: 12
diff changeset
252 | add credentials
7
2123f355ab68 go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents: 6
diff changeset
253 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
254 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
255 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
256 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
257 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
258 input(id='fbid',name='fbid',hidden='true')
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
259 input(id='fbtoken',name='fbtoken',hidden='true')
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
260 input(id='gpid',name='gpid',hidden='true')
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
261 input(id='gptoken',name='gptoken',hidden='true',size=100)
3
98a070c98982 add Twitter support
Mathias Gebbe <mgebbe@intevation.de>
parents: 0
diff changeset
262 br
30
3e3fa35e3ce2 twitter sync likes, recommend mongodb
Mathias Gebbe <mgebbe@intevation.de>
parents: 15
diff changeset
263 | you need to extra save the credentials (facebook / google+)
15
c5bf4e02958e add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents: 12
diff changeset
264 br
7
2123f355ab68 go back interval or 15 min, delete credentials, layout
Mathias Gebbe <mgebbe@intevation.de>
parents: 6
diff changeset
265 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
266 .footer
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
267 #logout.logout
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
268 //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
269 form(class='',action='/logout',method='post')
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
270 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
271 br
b73191efc65b Initial import of pumpbridge (bloody bloody alpha)
Mathias Gebbe <mgebbe@intevation.de>
parents:
diff changeset
272 p.
15
c5bf4e02958e add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents: 12
diff changeset
273 <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
274 <br>
30
3e3fa35e3ce2 twitter sync likes, recommend mongodb
Mathias Gebbe <mgebbe@intevation.de>
parents: 15
diff changeset
275 visit <a href=https://wald.intevation.org/projects/pumpbridge/>https://wald.intevation.org/projects/pumpbridge</a> for more information!
15
c5bf4e02958e add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents: 12
diff changeset
276 <br>
c5bf4e02958e add/delete credentials, new layout, alpha version ribbon, contact
Mathias Gebbe <mgebbe@intevation.de>
parents: 12
diff changeset
277 pumpbridge is hosted and operated by <a href=https://io.intevation.de/mgebbe>Mathias Gebbe</a> <a href=/contact.html>(Contact)</a> <br>
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)