Commit a9356b41da5047949c40fd263b980e80fd89b40f
Exists in
master
and in
39 other branches
Merge branch 'master' of https://github.com/TracyWebTech/colab
Showing
9 changed files
with
91 additions
and
70 deletions
Show diff stats
puppet/modules/colab/files/root_id_rsa
... | ... | @@ -1,28 +0,0 @@ |
1 | ------BEGIN RSA PRIVATE KEY----- | |
2 | -MIIEpAIBAAKCAQEAuCnJ7elkn0ZoMiZZIbZ8wigD1gcMwKyTVrPfnel9eNK9c/8R | |
3 | -6QsE6xrNoNQmjTsbGJF88RZkz7cYxX9YFIXatL+Wckq+GUirWMUm/2zIR8rqo31X | |
4 | -l/0E/nXWED3k9L3ZZwB3PzY15vDhkt+Gv+zpdYQkL6Jj23IAeDM1Q5/cq3Ha2z5l | |
5 | -1L0z7wN+rttfE879Jxv7plC3ceVzm7jj5aYRH2dZFgkjgr3DmAI0fh+15To4apkQ | |
6 | -fw/tvGPfogIDRhQybts5UvY2UnK4/ize+IswBTgTlNV864bLqpkgcY8drdX04Kxu | |
7 | -34qBG1FGtj4MDP3kjJdoFOolV4vn+5nGQ0A6awIDAQABAoIBAGO7ZbpskWxb8aNu | |
8 | -9wf1znxKtUEb0kEpdCUZBfl7b9KVtblyoZ1ltUUo38DAAxyqrJLSfyoEaZW/Xy/d | |
9 | -NbLvhjAqLOw6I9aHbxuEsQjUPWX7srPU9jG9+Q1gfQuQqUQM6AYKz4kw72HggxhJ | |
10 | -6qxXPVrBs+MD+zXk9/IgMTEtCpDhDVNdy1bEsiguEeUFOIvDCDqN4DN1iWy5i1Xn | |
11 | -aJTYp/JPbGqohp9XJ1vQPhQin5s0el21OxW61xJRR12Y2VAxKpmwXC5SdAT+z7bY | |
12 | -k2TXbujyP68MZKmnruhouRy5gtFwZpehGgoycuBWrwG2S2iEvJy7AsPFe90wEbQb | |
13 | -4xYjOtkCgYEA30jPvOurvRyM5Kpl6zhN9E1x4kqtuJsuRvGCqXfQtVZXD2b6hkGF | |
14 | -PHKVsCUco9t+86ZQZ2xoyMDuLxEelCnbktX0P8RfH/e1CqADo3NIxkd+vJsS/PYo | |
15 | -wEUcEYFaTKEzJJaG1ZApf4m14scSeMvirTy3sfVyZRWhcHRB9hLknncCgYEA0yWU | |
16 | -HMGC57GMXO3Wc0Bs7oaC2N7WbPk+reQ4rVxVLu1qOtpkzwpfwUFQBqn7LIpIX9Jc | |
17 | -B3MFOe9ndA5jNRwECMPoMd1d9t+OkTjf3cpiPwludph/cReIho1bouW2xzuR7XO0 | |
18 | -J1dLnmeYCKZQ1lKysK0bGbkRoXAz6yzK8oBc/K0CgYBV7YpstPF5rLQYB++DDz8I | |
19 | -xokOQhkK00WC7cyP9VkvgBOvDL1az3o74gjzKcUU1hLMJ3QH6TOGFqFTIa537Ifg | |
20 | -wU/m/mZxQf29IglkbKhUDg2a/b7X9M+H9tCvd+1NUjgBW6B2La2atF93746PSD9q | |
21 | -1dQHu2KTvjhLs6Hy1iB/TwKBgQCmLU4rb5VSOmdJABqmbE8PTygN/Rtvep59B0Ag | |
22 | -GKomG85ecWGjnPuNwpR0GjXHcTHS0GGDr1+uoB+gtG4Z72mxaFYHYLzCPmIbI1L1 | |
23 | -YIIAMLESf6TVYfseQoSbaQV4Ogb4hfaEe+zUx51dOWAnvcBK0oKgtQoOL5t8/Kzh | |
24 | -PGtypQKBgQDfMeSWp6Xztv3EAoBpuh6+T5nfcqEJ7FgkddxBVxDCJCOljDjZrjOk | |
25 | -YR3Yz7n3hN/0OfXxByL+EnP3EL3sIiIvc/IKxw3E2faU8iPXWyXmYbL/vHDs5+BX | |
26 | -h29DcOwAoANga1DxlQrJ6uGSb4yKkxaamTIJJMSJ5G9UUf90ie3Y2w== | |
27 | ------END RSA PRIVATE KEY----- | |
28 | - |
puppet/modules/colab/files/root_id_rsa.pub
... | ... | @@ -1 +0,0 @@ |
1 | -ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC4Kcnt6WSfRmgyJlkhtnzCKAPWBwzArJNWs9+d6X140r1z/xHpCwTrGs2g1CaNOxsYkXzxFmTPtxjFf1gUhdq0v5ZySr4ZSKtYxSb/bMhHyuqjfVeX/QT+ddYQPeT0vdlnAHc/NjXm8OGS34a/7Ol1hCQvomPbcgB4MzVDn9yrcdrbPmXUvTPvA36u218Tzv0nG/umULdx5XObuOPlphEfZ1kWCSOCvcOYAjR+H7XlOjhqmRB/D+28Y9+iAgNGFDJu2zlS9jZScrj+LN74izAFOBOU1XzrhsuqmSBxjx2t1fTgrG7fioEbUUa2PgwM/eSMl2gU6iVXi+f7mcZDQDpr demouser@demoserver |
puppet/modules/colab/manifests/cronjobs.pp
puppet/modules/colab/manifests/init.pp
... | ... | @@ -51,23 +51,24 @@ class colab { |
51 | 51 | path => '/root/.ssh', |
52 | 52 | } |
53 | 53 | |
54 | - file { 'root-ssh-private-key': | |
55 | - ensure => present, | |
56 | - mode => '0600', | |
57 | - path => '/root/.ssh/id_rsa', | |
58 | - source => 'puppet:///modules/colab/root_id_rsa', | |
59 | - owner => root, | |
60 | - group => root, | |
61 | - } | |
62 | - | |
63 | - file { 'root-ssh-public-key': | |
64 | - ensure => present, | |
65 | - mode => '0644', | |
66 | - path => '/root/.ssh/id_rsa.pub', | |
67 | - source => 'puppet:///modules/colab/root_id_rsa.pub', | |
68 | - owner => root, | |
69 | - group => root, | |
70 | - } | |
54 | + # Should generate instead of copying | |
55 | + #file { 'root-ssh-private-key': | |
56 | + # ensure => present, | |
57 | + # mode => '0600', | |
58 | + # path => '/root/.ssh/id_rsa', | |
59 | + # source => 'puppet:///modules/colab/root_id_rsa', | |
60 | + # owner => root, | |
61 | + # group => root, | |
62 | + #} | |
63 | + | |
64 | + #file { 'root-ssh-public-key': | |
65 | + # ensure => present, | |
66 | + # mode => '0644', | |
67 | + # path => '/root/.ssh/id_rsa.pub', | |
68 | + # source => 'puppet:///modules/colab/root_id_rsa.pub', | |
69 | + # owner => root, | |
70 | + # group => root, | |
71 | + #} | |
71 | 72 | |
72 | 73 | supervisor::app { 'colab': |
73 | 74 | command => '/home/colab/.virtualenvs/colab/bin/gunicorn colab.wsgi:application -c colab/gunicorn.conf.py', | ... | ... |
puppet/modules/colab/templates/nginx/site_default.erb
... | ... | @@ -12,7 +12,7 @@ server { |
12 | 12 | listen 80; |
13 | 13 | |
14 | 14 | root /; |
15 | - server_name colab.interlegis.leg.br colab.interlegis.gov.br colab-demo.tracy.com.br localhost; | |
15 | + server_name colab.interlegis.leg.br colab01a.interlegis.leg.br colab01b.interlegis.leg.br colab.interlegis.gov.br colab-demo.tracy.com.br localhost; | |
16 | 16 | |
17 | 17 | location @django { |
18 | 18 | proxy_hide_header Vary; |
... | ... | @@ -23,10 +23,23 @@ server { |
23 | 23 | proxy_redirect off; |
24 | 24 | proxy_set_header X-Real-IP $remote_addr; |
25 | 25 | proxy_set_header X-Scheme $scheme; |
26 | + proxy_set_header X-Forwarded-Protocol https; | |
26 | 27 | proxy_pass http://django; |
27 | 28 | access_log /var/log/nginx/proxy-access.log proxy; |
28 | 29 | } |
29 | 30 | |
31 | + location /http-bind { | |
32 | + proxy_pass http://127.0.0.1:5280; | |
33 | + } | |
34 | + | |
35 | + location /chrome { | |
36 | + proxy_pass http://ambientedev01a.interlegis.leg.br; | |
37 | + } | |
38 | + | |
39 | + location /raw-attachment { | |
40 | + proxy_pass http://ambientedev01a.interlegis.leg.br; | |
41 | + } | |
42 | + | |
30 | 43 | location / { |
31 | 44 | try_files /home/colab/colab/www$uri @django; |
32 | 45 | } | ... | ... |
requirements.txt
src/accounts/templates/accounts/user_update_form.html
... | ... | @@ -4,6 +4,11 @@ |
4 | 4 | {% block head_js %} |
5 | 5 | <script> |
6 | 6 | $(function() { |
7 | + | |
8 | + // Reset buttons to default state | |
9 | + $('.set-primary').button('reset'); | |
10 | + $('.delete-email').button('reset'); | |
11 | + | |
7 | 12 | $('#add-email').on('click', function(event) { |
8 | 13 | $.ajax({ |
9 | 14 | url: "{% url 'archive_email_view' %}", |
... | ... | @@ -61,6 +66,7 @@ $(function() { |
61 | 66 | $('#alert-js').removeClass('alert-warning').addClass('alert-success'); |
62 | 67 | $('#alert-js').show(); |
63 | 68 | window.scroll(0, 0); |
69 | + $('.verify-email').button('reset'); | |
64 | 70 | }); |
65 | 71 | |
66 | 72 | event.preventDefault(); |
... | ... | @@ -82,6 +88,19 @@ $(function() { |
82 | 88 | event.preventDefault(); |
83 | 89 | }); |
84 | 90 | |
91 | + // User feedbacks | |
92 | + $('.panel-default').on('click', '.set-primary', function() { | |
93 | + $('.set-primary').button('loading'); | |
94 | + }); | |
95 | + | |
96 | + $('.panel-default').on('click', '.verify-email', function() { | |
97 | + $('.verify-email').button('loading'); | |
98 | + }); | |
99 | + | |
100 | + $('.panel-default').on('click', '.delete-email', function() { | |
101 | + $('.delete-email').button('loading'); | |
102 | + }); | |
103 | + | |
85 | 104 | }); |
86 | 105 | </script> |
87 | 106 | {% endblock %} |
... | ... | @@ -135,8 +154,8 @@ $(function() { |
135 | 154 | <span class="label label-success">{% trans "Primary" %}</span> |
136 | 155 | {% else %} |
137 | 156 | <div class="text-right"> |
138 | - <button class="btn btn-default set-primary">{% trans "Set as Primary" %}</button> | |
139 | - <button class="btn btn-danger delete-email">{% trans "Delete" %}</button> | |
157 | + <button class="btn btn-default set-primary" data-loading-text="{% trans 'Setting...' %}">{% trans "Set as Primary" %}</button> | |
158 | + <button class="btn btn-danger delete-email" data-loading-text="{% trans 'Deleting...' %}">{% trans "Delete" %}</button> | |
140 | 159 | </div> |
141 | 160 | {% endif %} |
142 | 161 | <hr /> |
... | ... | @@ -147,7 +166,7 @@ $(function() { |
147 | 166 | {% gravatar user_.email 30 %} |
148 | 167 | <span class="email-address">{{ email.address }}</span> |
149 | 168 | <div class="text-right"> |
150 | - <button class="btn btn-default verify-email"><span class="icon-warning-sign"></span> {% trans "Verify" %}</button> | |
169 | + <button class="btn btn-default verify-email" data-loading-text="{% trans 'Sending verification...' %}"><span class="icon-warning-sign"></span> {% trans "Verify" %}</button> | |
151 | 170 | <button class="btn btn-danger delete-email">{% trans "Delete" %}</button> |
152 | 171 | </div> |
153 | 172 | <hr /> | ... | ... |
src/locale/pt_BR/LC_MESSAGES/django.mo
No preview for this file type
src/locale/pt_BR/LC_MESSAGES/django.po
... | ... | @@ -7,7 +7,7 @@ msgid "" |
7 | 7 | msgstr "" |
8 | 8 | "Project-Id-Version: PACKAGE VERSION\n" |
9 | 9 | "Report-Msgid-Bugs-To: \n" |
10 | -"POT-Creation-Date: 2013-11-13 15:58-0200\n" | |
10 | +"POT-Creation-Date: 2013-11-14 15:22-0200\n" | |
11 | 11 | "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" |
12 | 12 | "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" |
13 | 13 | "Language-Team: LANGUAGE <LL@li.org>\n" |
... | ... | @@ -138,52 +138,64 @@ msgstr "Participações em comunidades internas" |
138 | 138 | msgid "No contributions of this user so far." |
139 | 139 | msgstr "Não há posts deste usuário até agora." |
140 | 140 | |
141 | -#: accounts/templates/accounts/user_update_form.html:58 | |
141 | +#: accounts/templates/accounts/user_update_form.html:63 | |
142 | 142 | msgid "We sent a verification email to " |
143 | 143 | msgstr "Enviamos um email de verificação para " |
144 | 144 | |
145 | -#: accounts/templates/accounts/user_update_form.html:59 | |
145 | +#: accounts/templates/accounts/user_update_form.html:64 | |
146 | 146 | msgid "Please follow the instructions in it." |
147 | 147 | msgstr "Por favor, siga as instruções." |
148 | 148 | |
149 | -#: accounts/templates/accounts/user_update_form.html:94 | |
149 | +#: accounts/templates/accounts/user_update_form.html:113 | |
150 | 150 | msgid "profile information" |
151 | 151 | msgstr "informações do perfil" |
152 | 152 | |
153 | -#: accounts/templates/accounts/user_update_form.html:99 | |
153 | +#: accounts/templates/accounts/user_update_form.html:118 | |
154 | 154 | msgid "Change your avatar at Gravatar.com" |
155 | 155 | msgstr "Troque seu avatar em Gravatar.com" |
156 | 156 | |
157 | -#: accounts/templates/accounts/user_update_form.html:126 search/utils.py:8 | |
157 | +#: accounts/templates/accounts/user_update_form.html:145 search/utils.py:8 | |
158 | 158 | msgid "Emails" |
159 | 159 | msgstr "E-mails" |
160 | 160 | |
161 | -#: accounts/templates/accounts/user_update_form.html:135 | |
161 | +#: accounts/templates/accounts/user_update_form.html:154 | |
162 | 162 | msgid "Primary" |
163 | 163 | msgstr "Primários" |
164 | 164 | |
165 | -#: accounts/templates/accounts/user_update_form.html:138 | |
165 | +#: accounts/templates/accounts/user_update_form.html:157 | |
166 | +msgid "Setting..." | |
167 | +msgstr "Definindo..." | |
168 | + | |
169 | +#: accounts/templates/accounts/user_update_form.html:157 | |
166 | 170 | msgid "Set as Primary" |
167 | 171 | msgstr "Definir como Primário" |
168 | 172 | |
169 | -#: accounts/templates/accounts/user_update_form.html:139 | |
170 | -#: accounts/templates/accounts/user_update_form.html:151 | |
173 | +#: accounts/templates/accounts/user_update_form.html:158 | |
174 | +msgid "Deleting..." | |
175 | +msgstr "Deletando..." | |
176 | + | |
177 | +#: accounts/templates/accounts/user_update_form.html:158 | |
178 | +#: accounts/templates/accounts/user_update_form.html:170 | |
171 | 179 | msgid "Delete" |
172 | 180 | msgstr "Apagar" |
173 | 181 | |
174 | -#: accounts/templates/accounts/user_update_form.html:150 | |
182 | +#: accounts/templates/accounts/user_update_form.html:169 | |
183 | +msgid "Sending verification..." | |
184 | +msgstr "Enviando verificação..." | |
185 | + | |
186 | +#: accounts/templates/accounts/user_update_form.html:169 | |
175 | 187 | msgid "Verify" |
176 | 188 | msgstr "Verificar" |
177 | 189 | |
178 | -#: accounts/templates/accounts/user_update_form.html:158 | |
190 | +#: accounts/templates/accounts/user_update_form.html:177 | |
179 | 191 | msgid "Add another email address:" |
180 | 192 | msgstr "Adicionar outro endereço de e-mail" |
181 | 193 | |
182 | -#: accounts/templates/accounts/user_update_form.html:161 | |
194 | +#: accounts/templates/accounts/user_update_form.html:180 | |
183 | 195 | msgid "Add" |
184 | 196 | msgstr "Adicionar" |
185 | 197 | |
186 | -#: accounts/templates/accounts/user_update_form.html:168 | |
198 | +#: accounts/templates/accounts/user_update_form.html:187 | |
187 | 199 | msgid "Update" |
188 | 200 | msgstr "Atualizar" |
189 | 201 | |
... | ... | @@ -316,11 +328,11 @@ msgstr "Imagem" |
316 | 328 | msgid "Spreadsheet" |
317 | 329 | msgstr "Planilha" |
318 | 330 | |
319 | -#: colab/custom_settings.py:261 | |
331 | +#: colab/custom_settings.py:263 | |
320 | 332 | msgid "Planet Colab" |
321 | 333 | msgstr "" |
322 | 334 | |
323 | -#: colab/custom_settings.py:262 | |
335 | +#: colab/custom_settings.py:264 | |
324 | 336 | msgid "Colab blog aggregator" |
325 | 337 | msgstr "Agregador de blog Colab" |
326 | 338 | |
... | ... | @@ -836,15 +848,19 @@ msgstr "Meu Perfil" |
836 | 848 | msgid "Search here..." |
837 | 849 | msgstr "Pesquise aqui..." |
838 | 850 | |
839 | -#: templates/base.html:156 | |
851 | +#: templates/base.html:138 | |
852 | +msgid "The login has failed. Please, try again." | |
853 | +msgstr "O login falhou. Por favor, tente novamente." | |
854 | + | |
855 | +#: templates/base.html:163 | |
840 | 856 | msgid "Last email imported at" |
841 | 857 | msgstr "Último e-mail importado em" |
842 | 858 | |
843 | -#: templates/base.html:161 | |
859 | +#: templates/base.html:168 | |
844 | 860 | msgid "The contents of this site is published under license" |
845 | 861 | msgstr "O conteúdo deste site está publicado sob a licença" |
846 | 862 | |
847 | -#: templates/base.html:163 | |
863 | +#: templates/base.html:170 | |
848 | 864 | msgid "Creative Commons - attribution, non-commercial" |
849 | 865 | msgstr "Creative Commons - atribuição e não-comercial" |
850 | 866 | ... | ... |