Commit 66f61f43e86a1a6dfa65dcac73af65bbb8b4aae1
1 parent
dda21cde
Exists in
master
Cleaning WikiLibras theme
Showing
23 changed files
with
52 additions
and
159 deletions
Show diff stats
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
pybossa/themes/default/static/css/fonts/roboto/Roboto-MediumItalic.ttf
0 → 100644
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
pybossa/themes/default/static/css/theme.css
1 | -/*! | |
2 | - * Contribua default theme v0.1 | |
1 | +/* | |
2 | + * WikiLibras theme | |
3 | 3 | */ |
4 | 4 | @font-face { |
5 | 5 | font-family: 'Open Sans'; |
... | ... | @@ -7,6 +7,12 @@ |
7 | 7 | font-weight: 400; |
8 | 8 | src: local('Open Sans'), local('OpenSans'), url(fonts/opensans.woff2) format('woff2'), url(fonts/opensans.woff) format('woff'); |
9 | 9 | } |
10 | + | |
11 | +@font-face { | |
12 | + font-family: 'Roboto'; | |
13 | + src: url('fonts/roboto/Roboto-Light.ttf') format('truetype'); | |
14 | +} | |
15 | + | |
10 | 16 | html { |
11 | 17 | position: relative; |
12 | 18 | min-height: 100%; |
... | ... | @@ -22,7 +28,12 @@ footer { |
22 | 28 | width: 100%; |
23 | 29 | padding-top: 30px; |
24 | 30 | padding-bottom: 30px; |
25 | - background-color: #2c3e50; | |
31 | + background-color: #0f78a7; | |
32 | + color: white; | |
33 | +} | |
34 | + | |
35 | +footer a { | |
36 | + color: white; | |
26 | 37 | } |
27 | 38 | @media (max-width: 768px) { |
28 | 39 | body { |
... | ... | @@ -32,6 +43,30 @@ footer { |
32 | 43 | position: relative; |
33 | 44 | } |
34 | 45 | } |
46 | + | |
47 | +.wikilibras-navbar, .wikilibras-navbar .navbar-nav>.open>.dropdown-menu { | |
48 | + background-color: #0f78a7; | |
49 | +} | |
50 | + | |
51 | +.wikilibras-navbar .navbar-nav>.open>.dropdown-menu>li>a { | |
52 | + color: white; | |
53 | +} | |
54 | + | |
55 | +.wikilibras-navbar .navbar-nav>.open>.dropdown-menu>.divider { | |
56 | + background-color: white; | |
57 | + margin: 0; | |
58 | + height: 1px; | |
59 | +} | |
60 | + | |
61 | +.wikilibras-navbar a { | |
62 | + color: white; | |
63 | +} | |
64 | + | |
65 | +/* Projects */ | |
66 | +.projects { | |
67 | + padding-top: 30px; | |
68 | +} | |
69 | + | |
35 | 70 | a.title-brand:link { |
36 | 71 | font-size:24px; |
37 | 72 | font-weight:700; |
... | ... | @@ -177,7 +212,7 @@ h6 small { |
177 | 212 | position: absolute; |
178 | 213 | z-index: 1000; |
179 | 214 | background-color: rgba(255, 255, 255, 0.8); |
180 | - bottom: 168px; | |
215 | + bottom: 105px; | |
181 | 216 | height: auto; |
182 | 217 | width: 100%; |
183 | 218 | line-height: 20px; | ... | ... |
pybossa/themes/default/static/img/favicon.ico
No preview for this file type
pybossa/themes/default/templates/_footer.html
... | ... | @@ -15,13 +15,15 @@ |
15 | 15 | <br> |
16 | 16 | </div> |
17 | 17 | <div class="col-sm-5"> |
18 | - <p><strong>Contribua</strong> é uma plataforma de ciência cidadã. Ela une cientistas e voluntários na execução de pesquisas científicas.</p> | |
18 | + <p><strong>WikiLibras</strong> é uma plataforma colaborativa para construção de um dicionário em LIBRAS.</p> | |
19 | 19 | <p class="social-buttons"> |
20 | 20 | <a href="{{ url_for('home.about')}}"><span class="icon icon-question-sign"></span></a> |
21 | 21 | |
22 | - <a href="mailto:contribua@lsd.ufcg.edu.br"><span class="icon icon-envelope"></span></a> | |
22 | + <a href="mailto:wikilibras@lavid.ufpb.br"><span class="icon icon-envelope"></span></a> | |
23 | 23 | |
24 | - <a href="https://twitter.com/contribua" target="_blank"><span class="icon icon-twitter"></span></a> | |
24 | + <a href="https://www.youtube.com/channel/UCF94lq7TwAu5OmlwIu44qpA" target="_blank"><span class="icon icon-youtube"></span></a> | |
25 | + | |
26 | + <a href="https://www.facebook.com/vlibras" target="_blank"><span class="icon icon-facebook"></span></a> | |
25 | 27 | </p> |
26 | 28 | </div> |
27 | 29 | </div> | ... | ... |
pybossa/themes/default/templates/_navbar.html
1 | - <nav class="navbar navbar-inverse navbar-fixed-top"> | |
1 | + <nav class="navbar navbar-inverse navbar-fixed-top wikilibras-navbar"> | |
2 | 2 | <div class="container"> |
3 | 3 | <div class="navbar-header"> |
4 | 4 | <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#main-navbar-collapse" aria-expanded="false"> | ... | ... |
pybossa/themes/default/templates/base.html
... | ... | @@ -24,7 +24,8 @@ |
24 | 24 | <![endif]--> |
25 | 25 | |
26 | 26 | <!-- Le fav and touch icons --> |
27 | - <link rel="shortcut icon" href="/static/img/favicon.ico"> | |
27 | + <link rel="shortcut icon" href="/static/img/favicon.ico" type="image/x-icon"> | |
28 | + <link rel="icon" href="/static/img/favicon.ico" type="image/x-icon"> | |
28 | 29 | |
29 | 30 | <!-- Le javascript --> |
30 | 31 | <script type="text/javascript" src="{{url_for('static', filename='vendor/jquery-1.11.3.min.js')}}"></script> | ... | ... |
pybossa/themes/default/templates/home/_about.html
... | ... | @@ -1,13 +0,0 @@ |
1 | -<h1>{{ _('O que é <b>Contribua</b>?') }}</h1> | |
2 | -<p>{{ _('<b>Contribua</b> é uma plataforma de ciência cidadã. Ela une cientistas e voluntários na execução de pesquisas científicas. Cientistas podem criar projetos compostos por tarefas que requerem cognição humana, como: detecção de conteúdo em imagens, vídeos e áudio. Voluntários podem contribuir com a pesquisa executando tarefas nos projetos. Nesse processo, os cientístas têm as tarefas executadas e os voluntários aprendem um pouco sobre as pesquisa enquanto contribuem para o avanço da ciência. Assim, todos saem ganhando!') }}</p> | |
3 | - | |
4 | -<h2>{{ _('Quero ajudar a ciência, por onde começo?') }}</h2> | |
5 | -<p>Você pode contribuir executando tarefas em um ou mais projetos. Para conhecer os projetos disponíveis, basta acessar Projetos no menu superior ou clicar <a href='/pybossa/app'> neste link</a>. Cada projeto apresenta todas as informações que você precisa para contribuir. Em muitos projetos você pode contribuir como anônimo, mas para que sua contribuição seja contabilizada para você é necessário que você faça um cadastro e sempre execute tarefas logado.</p> | |
6 | -<h2>{{ _('Sou cientísta e tenho muitas tarefas para serem executadas, como Contribua pode me ajudar?') }}</h2> | |
7 | -<p><b>Contribua</b> pode lhe ajudar em duas coisas: criar um projeto e atrair voluntários. A plataforma possui diversas ferramentas que ajudam você a criar projetos de modo a receber a contribuição de multidões de voluntários, como: obter respostas redundantes para tratar erros e controlar como as tarefas são alocadas aos voluntários. Além disso, existem diversos voluntários que contribuem regularmente no Contribua, esses voluntários potencialmente podem contribuir no seu projeto. Para criar um projeto, basta acessar Criar no menu superior ou clicar <a href='/pybossa/app/new'> neste link</a>.</p> | |
8 | - | |
9 | -<h2>{{ _('Como posso ser informado sobre as novidades no Contribua?') }}</h2> | |
10 | -<p> O canal de comunicação oficial é o Twitter <a href='https://twitter.com/contribua'>@contribua </a>. Nesse Twitter nós divulgamos as novidades sobre os projetos e as estatísticas do <b>Contribua</b>.</p> | |
11 | - | |
12 | -<h2>{{ _('Como posso entrar em contato?') }}</h2> | |
13 | -<p>{{ _('<b>Contribua</b> é mantido pelo Laboratório de Sistemas Distribuídos (LSD) na Universidade Federal de Campina Grande (UFCG). Av. Aprígio Veloso, 882 - Bloco CO, Bodocongó, CEP 58429-900, Campina Grande - Paraíba, Brasil, Fone: +55 83 2101 1365, Fax: +55 83 2101 1498. E-mail') }} <a href="mailto:contribua@lsd.ufcg.edu.br">contribua@lsd.ufcg.edu.br</a></p> | |
14 | 0 | \ No newline at end of file |
pybossa/themes/default/templates/home/_pybossa_text.html
... | ... | @@ -1,64 +0,0 @@ |
1 | -<div id="carousel-contribua" class="carousel slide" data-ride="carousel"> | |
2 | - | |
3 | - <!-- Wrapper for slides --> | |
4 | - <div class="carousel-inner" role="listbox"> | |
5 | - <div class="item active"> | |
6 | - <img src="{{url_for('static', filename='img/app04.png')}}" alt="AndroDEOPS" width="100%"> | |
7 | - <div class="carousel-caption"> | |
8 | - <h2 class="app-banner-title">Recuperação de documentos da Ditadura Militar</h2> | |
9 | - <div class="row"> | |
10 | - <div class="col-md-8 col-md-offset-2 text-center"> | |
11 | - <h5 class="app-banner-subtitle">Auxilie estudos de documentos da Ditadura Militar brasileira</h5> | |
12 | - </div> | |
13 | - </div> | |
14 | - <p class="app-banner-btn"><a class="btn btn-lg btn-danger" href="https://contribua.org/pybossa/project/androdeops/" role="button">Comece agora a contribuir</a></p> | |
15 | - </div> | |
16 | - </div> | |
17 | - <div class="item"> | |
18 | - <img src="{{url_for('static', filename='img/app02.jpg')}}" alt="Como é Campina?" width="100%"> | |
19 | - <div class="carousel-caption"> | |
20 | - <h2 class="app-banner-title">Como é Campina?</h2> | |
21 | - <div class="row"> | |
22 | - <div class="col-md-8 col-md-offset-2 text-center"> | |
23 | - <h5 class="app-banner-subtitle">Avalie quais lugares de Campina Grande - PB parecem ser mais seguros ou agradáveis</h5> | |
24 | - </div> | |
25 | - </div> | |
26 | - <p class="app-banner-btn"><a class="btn btn-lg btn-danger" href="https://contribua.org/pybossa/project/comoecampina/" role="button">Comece agora a contribuir</a></p> | |
27 | - </div> | |
28 | - </div> | |
29 | - <div class="item"> | |
30 | - <img src="{{url_for('static', filename='img/app03.jpg')}}" alt="Memória Estatística do Brasil" width="100%"> | |
31 | - <div class="carousel-caption"> | |
32 | - <h2 class="app-banner-title">Memória Estatística do Brasil</h2> | |
33 | - <div class="row"> | |
34 | - <div class="col-md-8 col-md-offset-2 text-center"> | |
35 | - <h5 class="app-banner-subtitle">Transcreva dados históricos e ajude a recuperar a memória estatística do Brasil</h5> | |
36 | - </div> | |
37 | - </div> | |
38 | - <p class="app-banner-btn"><a class="btn btn-lg btn-danger" href="https://contribua.org/pybossa/project/meb_home/" role="button">Comece agora a contribuir</a></p> | |
39 | - </div> | |
40 | - </div> | |
41 | - <div class="item"> | |
42 | - <img src="{{url_for('static', filename='img/app01.jpg')}}" alt="Água Nossa" width="100%"> | |
43 | - <div class="carousel-caption"> | |
44 | - <h2 class="app-banner-title">Água Nossa</h2> | |
45 | - <div class="row"> | |
46 | - <div class="col-md-8 col-md-offset-2 text-center"> | |
47 | - <h5 class="app-banner-subtitle">Informe sobre a falta de água em seu domicílio em Campina Grande</h5> | |
48 | - </div> | |
49 | - </div> | |
50 | - <p class="app-banner-btn"><a class="btn btn-lg btn-danger" href="https://contribua.org/aguanossa/" role="button">Comece agora a contribuir</a></p> | |
51 | - </div> | |
52 | - </div> | |
53 | - </div> | |
54 | - | |
55 | - <!-- Controls --> | |
56 | - <a class="left carousel-control" href="#carousel-contribua" role="button" data-slide="prev"> | |
57 | - <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span> | |
58 | - <span class="sr-only">Previous</span> | |
59 | - </a> | |
60 | - <a class="right carousel-control" href="#carousel-contribua" role="button" data-slide="next"> | |
61 | - <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span> | |
62 | - <span class="sr-only">Next</span> | |
63 | - </a> | |
64 | -</div> | |
65 | 0 | \ No newline at end of file |
pybossa/themes/default/templates/home/index.html
... | ... | @@ -3,36 +3,5 @@ |
3 | 3 | {% import "account/_helpers.html" as account_helper %} |
4 | 4 | |
5 | 5 | {% block content %} |
6 | - {% include ['custom/front_page_text.html', 'home/_pybossa_text.html'] ignore missing %} | |
7 | - | |
8 | - <section class="section-inverse"> | |
9 | - <div class="container"> | |
10 | - <h1 class="text-center">{{ _('It\'s really simple to start contributing') }}</h1> | |
11 | - <div class="row"> | |
12 | - <div class="col-md-4 col-md-offset-1 text-center"> | |
13 | - <div class="box"> | |
14 | - <h2><span class="glyphicon glyphicon-gift"></span></h2> | |
15 | - <h6>{{ _('Cooperate with projects that catch your attention!') }} </h6> | |
16 | - <br> | |
17 | - <a href="{{url_for('project.index')}}" class="btn btn-primary btn-lg"><span class="icon-ok-sign"></span> {{ _(' Start Contributing') }}</a> | |
18 | - | |
19 | - </div> | |
20 | - </div> | |
21 | - <div class="col-md-1"> | |
22 | - | |
23 | - </div> | |
24 | - <div class="col-md-4 text-center"> | |
25 | - <div class="box"> | |
26 | - <h2><span class="glyphicon glyphicon-lamp"></span></h2> | |
27 | - <h6> {{ _('Create a project and get help from other volunteers!') }} </h6> | |
28 | - <br> | |
29 | - <a href="{{url_for('project.new')}}" class="btn btn-primary btn-lg"><span class="glyphicon glyphicon-plus"></span> {{ _('Create a Project') }}</a> | |
30 | - | |
31 | - </div> | |
32 | - </div> | |
33 | - </div> | |
34 | - </div> | |
35 | - </section> | |
36 | - | |
37 | -{{ helper.broken_image() }} | |
6 | + {% include ['custom/front_page_text.html', 'home/_pybossa_text.html'] ignore missing %} | |
38 | 7 | {% endblock %} | ... | ... |
pybossa/themes/default/templates/projects/_helpers.html
... | ... | @@ -138,12 +138,6 @@ |
138 | 138 | {{ render_project_thumbnail(project, upload_method, class='tile-extended-image', width='100%') }} |
139 | 139 | <div class="tile-title"><a href="{{ url_for('project.details', short_name = project.short_name) }}">{{ project.name }}</a></div> |
140 | 140 | <div class="tile-text"> |
141 | - <p><span class="icon-ok"></span> {{ _('Creation Date') }}: <span class="date">{{ project.created[0:10] }}</span></p> | |
142 | - {% if project.owner == current_user.fullname %} | |
143 | - <p><span class="icon-user"></span> {{ _('Created by') }}: {{ _('Me') }}</p> | |
144 | - {% else %} | |
145 | - <p><span class="icon-user"></span> {{ _('Created by') }}: {{ project.owner }}</p> | |
146 | - {% endif %} | |
147 | 141 | <br> |
148 | 142 | <div class="progress"> |
149 | 143 | <div class="progress-bar" role="progressbar" aria-valuenow="{{ project.overall_progress | round | int }}" aria-valuemin="0" aria-valuemax="100" style="min-width: 2em; width: {{ project.overall_progress | round | int }}%;"> | ... | ... |
pybossa/themes/default/templates/projects/index.html
... | ... | @@ -6,44 +6,9 @@ |
6 | 6 | {% block content %} |
7 | 7 | <script src="{{url_for('static', filename='js/vendor/isotope.pkgd.min.js')}}"></script> |
8 | 8 | |
9 | -<div class="container-fluid navbar-sub"> | |
10 | - <div class="container"> | |
11 | - <ul class="nav nav-pills nav-justified nav-pills-inverse"> | |
12 | - {% for c in categories %} | |
13 | - <li role="presentation" {% if active_cat.short_name==c.short_name%}class="active"{% endif %}> | |
14 | - <a href="{{url_for('project.project_cat_index', category=c.short_name)}}">{{ _(c.name) }}</a> | |
15 | - </li> | |
16 | - {% endfor %} | |
17 | - {% if current_user.is_authenticated() and current_user.admin %} | |
18 | - <li role="presentation" {% if active_cat.short_name=="draft"%}class="active"{% endif %}><a href="{{url_for('project.draft')}}">{{ _('Draft') }}</a></li> | |
19 | - {% endif %} | |
20 | - </ul> | |
21 | - </div> | |
22 | -</div> | |
23 | - | |
24 | 9 | <div class="container"> |
25 | 10 | |
26 | 11 | {% if projects %} |
27 | - <div id="sorts" class="btn-group pull-right" style="margin-top:12px;"> | |
28 | - <button class="btn dropdown-toggle" data-toggle="dropdown" data-sort-value="original-order">{{ _('Order by') }} <span id="order">{{ _('name') }}</span> <span class="caret"></span></button> | |
29 | - <ul class="dropdown-menu" style="top:35px;"> | |
30 | - <li><a href="#" data-sort-value="original-order">{{ _('name') }}</a></li> | |
31 | - <li><a href="#" data-sort-value="date">{{ _('date') }}</a></li> | |
32 | - <li><a href="#" data-sort-value="activity">{{ _('activity') }}</a></li> | |
33 | - <li><a href="#" data-sort-value="progress">{{ _('progress') }}</a></li> | |
34 | - </ul> | |
35 | - </div> | |
36 | - {% if active_cat.short_name=="featured"%} | |
37 | - <h6><i class="glyphicon glyphicon-star"></i> {{pagination.total_count}} {{ _('Featured Projects') }}</h6> | |
38 | - <p>{{ _('A special selection of the most interesting projects') }}</p> | |
39 | - {% elif active_cat.short_name=='draft' %} | |
40 | - <h6><i class="glyphicon glyphicon-wrench"></i> {{pagination.total_count}} {{ _('Draft Projects')}}</h6> | |
41 | - <p>{{ _('Work in progress projects') }}</p> | |
42 | - {% else %} | |
43 | - <h6><i class="glyphicon glyphicon-th"></i> {{pagination.total_count}} {{ active_cat.name }} Projects</h6> | |
44 | - <p>{{ active_cat.description }}</p> | |
45 | - {% endif %} | |
46 | - | |
47 | 12 | <div class="projects"> |
48 | 13 | {% for project in projects %} |
49 | 14 | {{ helper.show_project(project, active_cat.short_name, current_user, upload_method) }} | ... | ... |
pybossa/view/account.py
... | ... | @@ -228,6 +228,10 @@ def register(): |
228 | 228 | return render_template('account/account_validation.html') |
229 | 229 | else: |
230 | 230 | flash(gettext('Please correct the errors'), 'error') |
231 | + | |
232 | + if (request.method == 'GET' and current_user.is_authenticated()): | |
233 | + return redirect(url_for('project.index')) | |
234 | + | |
231 | 235 | return render_template('account/register.html', |
232 | 236 | title=gettext("Register"), |
233 | 237 | form=form, upload_form=avatar_form, avatar_upload_id=avatar_upload_id) | ... | ... |