Commit f3a7532c6896f2a86701185c57e1c54ad9ebce9b
1 parent
a4fd4950
Exists in
master
Adiciona url para testar para a barra 2.X
Showing
3 changed files
with
64 additions
and
0 deletions
Show diff stats
app/barrabrasil.py
| ... | ... | @@ -34,6 +34,17 @@ def pagina_teste(): |
| 34 | 34 | except IOError: |
| 35 | 35 | return make_response("<h1>403 Forbidden</h1>", 403) |
| 36 | 36 | |
| 37 | +@app.route('/exemplo_antiga.html') | |
| 38 | +def pagina_teste_antiga(): | |
| 39 | + try: | |
| 40 | + with app.open_resource('templates/exemplo_antiga.html') as f: | |
| 41 | + conteudo = f.read().decode('utf-8') | |
| 42 | + resposta = make_response(conteudo) | |
| 43 | + resposta.headers['Content-type'] = 'text/html; charset=utf-8' | |
| 44 | + return resposta | |
| 45 | + except IOError: | |
| 46 | + return make_response("<h1>403 Forbidden</h1>", 403) | |
| 47 | + | |
| 37 | 48 | @app.route('/imagens/vlibras.gif') |
| 38 | 49 | def vlibras_teste(): |
| 39 | 50 | try: | ... | ... |
build.sh
| ... | ... | @@ -47,6 +47,7 @@ then |
| 47 | 47 | cp templates/default/barra-brasil-en.js ../docker/public_html/barra_2.0.js.en #Copiando enquanto a barra é estática. |
| 48 | 48 | cp templates/default/barra-brasil-fr.js ../docker/public_html/barra_2.0.js.fr #Copiando enquanto a barra é estática. |
| 49 | 49 | cp templates/default/barra-brasil-es.js ../docker/public_html/barra_2.0.js.es #Copiando enquanto a barra é estática. |
| 50 | + cp templates/exemplo_antiga.html ../docker/public_html/exemplo_antiga.html #Copiando enquanto a barra é estática. | |
| 50 | 51 | fi |
| 51 | 52 | echo "Copiado" |
| 52 | 53 | else | ... | ... |
| ... | ... | @@ -0,0 +1,52 @@ |
| 1 | +<!DOCTYPE html> | |
| 2 | +<html lang="pt-BR"> | |
| 3 | + <head> | |
| 4 | + <meta charset="utf-8" /> | |
| 5 | + <meta name=viewport content="width=device-width, initial-scale=1"> | |
| 6 | + <meta property="creator.productor" content="http://estruturaorganizacional.dados.gov.br/id/unidade-organizacional/2981"/> | |
| 7 | + <title>Barra Brasil</title> | |
| 8 | + <!--Adicionado para fazer os testes via mocha/chai-jq/chai/zombie --> | |
| 9 | +<script type="text/javascript" src="static/jquery.js"></script> | |
| 10 | +<link href='https://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'> | |
| 11 | + | |
| 12 | + <style type="text/css"> | |
| 13 | + | |
| 14 | +body { | |
| 15 | + font-family: sans-serif, Arial; | |
| 16 | + margin: 0px; | |
| 17 | + padding: 0px; | |
| 18 | +} | |
| 19 | + | |
| 20 | +#content { | |
| 21 | + padding: 50px; | |
| 22 | +} | |
| 23 | + | |
| 24 | +#footer-brasil { | |
| 25 | + background: none repeat scroll 0% 0% #F1F1F1; | |
| 26 | + padding: 1em 0px; | |
| 27 | + max-width: 100%; | |
| 28 | +} | |
| 29 | + | |
| 30 | + </style> | |
| 31 | + </head> | |
| 32 | + | |
| 33 | + | |
| 34 | +<body> | |
| 35 | + <div id="barra-brasil" style="background:#7F7F7F; height: 20px; padding:0 0 0 10px;display:block;"> | |
| 36 | + <ul id="menu-barra-temp" style="list-style:none;"> | |
| 37 | + <li style="display:inline; float:left;padding-right:10px; margin-right:10px; border-right:1px solid #EDEDED"><a href="http://brasil.gov.br" style="font-family:sans,sans-serif; text-decoration:none; color:white;">Portal do Governo Brasileiro</a></li> | |
| 38 | + <li><a style="font-family:sans,sans-serif; text-decoration:none; color:white;" href="http://epwg.governoeletronico.gov.br/barra/atualize.html">Atualize sua Barra de Governo</a></li> | |
| 39 | + </ul> | |
| 40 | +</div> | |
| 41 | +<div id="conteudo"> | |
| 42 | + <h1 id="principalll">Barra Brasil versão 2.2.15</h1> | |
| 43 | + <p>ID do Ministério do Planejamento: http://estruturaorganizacional.dados.gov.br/id/unidade-organizacional/2981</p> | |
| 44 | + <p>Veja as <a href="http://barra.governoeletronico.gov.br/">instruções de como usar a barra</a> no e-PWG.</p> | |
| 45 | + <p>Como requisito para a campanha seja habilitada é necessário ter carregado o jQuery versão 1.7 no mínimo. Esse carregamento deve ocorrer antes da chamada da barra.js</p> | |
| 46 | + <p> <a href="#" id="contraste">Habilitar Alto Contraste.</a></p> | |
| 47 | + <p><a href="https://portal.softwarepublico.gov.br/gitlab/govbr/barra-govbr">Contribua com a barra no software público brasileiro</a></p> | |
| 48 | +</div><!-- #conteudo --> | |
| 49 | + <div id="footer-brasil"></div> | |
| 50 | + <script defer src="barra.js" type="text/javascript"></script> | |
| 51 | + </body> | |
| 52 | +</html> | ... | ... |