Commit 3f447c65a58b353381d5bab7d1e8c1be8d0c76dc

Authored by Carlos Coêlho
Committed by David Silva
1 parent dc71d323

SISP Header

Signed-off-by: Carlos Oliveira <carlospecter@gmail.com>
(cherry picked from commit 216bfb9a169a14d65b85ca5d765946e0921db5a4)
src/colab-spb-theme-plugin/colab_spb_theme/static/css/header.css
... ... @@ -408,3 +408,23 @@ header .thumbnail {
408 408 min-width: 80px;
409 409 max-width: 80px;
410 410 }
  411 +
  412 +header #spb-header-quick-access {
  413 + border-bottom: 1px solid #d9dbde;
  414 + padding-bottom: 18px;
  415 +}
  416 +
  417 +header #spb-header-quick-access p {
  418 + color: #54606d;
  419 + font-size: 11px;
  420 + margin-top:-8px;
  421 +}
  422 +
  423 +header #spb-header-quick-access a {
  424 + color: #2C65CD;
  425 + font-weight: bold;
  426 +}
  427 +
  428 +header #spb-header-content {
  429 + padding-top: 13px;
  430 +}
... ...
src/colab-spb-theme-plugin/colab_spb_theme/templates/header_sisp.html
... ... @@ -7,8 +7,11 @@
7 7 <a href="http://brasil.gov.br" style="background:#7F7F7F; height: 20px; padding:4px 0 4px 10px; display: block; font-family:sans,sans-serif; text-decoration:none; color:white; ">Software Público Brasileiro</a>
8 8 </div>
9 9 <script src="//barra.brasil.gov.br/barra.js" type="text/javascript" defer async></script>
10   - <div id="header" role="banner">
11   - <div>
  10 + <div id="header" role="banner">
  11 + <div id="spb-header-quick-access">
  12 + <p class='pull-right'>Acesso rápido: <a href="{% url 'home' %}">Software Público Brasileiro</a></p>
  13 + </div>
  14 + <div id="spb-header-content">
12 15 <ul id="accessibility">
13 16 <li>
14 17 <a accesskey="1" href="#acontent" id="link-conteudo">
... ... @@ -22,16 +25,16 @@
22 25 <span>2</span>
23 26 </a>
24 27 </li>
25   - <li>
  28 + <!-- <li>
26 29 <a accesskey="3" href="#nolivesearchGadget" id="link-buscar">
27 30 Ir para a busca
28 31 <span>3</span>
29 32 </a>
30   - </li>
  33 + </li> -->
31 34 <li class="last-item">
32   - <a accesskey="4" href="#afooter" id="link-rodape">
  35 + <a accesskey="3" href="#afooter" id="link-rodape">
33 36 Ir para o rodapé
34   - <span>4</span>
  37 + <span>3</span>
35 38 </a>
36 39 </li>
37 40 </ul>
... ... @@ -61,48 +64,14 @@
61 64 </a>
62 65 </li>
63 66 </ul>
64   - <ul id="login-menu">
65   - {% if not user.is_authenticated %}
66   - <li class="login-item"><a href="{% url 'signup' %}">Cadastre-se</a></li>
67   - <li class="login-item last-item"><a href="{% url 'login' %}">Entrar</a></li>
68   - {% else %}
69   - <li id="user-menu" class="dropdown softwarepublico-item">
70   - <a href="#" class="dropdown-toggle user" data-toggle="dropdown">{% gravatar user.email %} <b class="caret"></b>&nbsp;&nbsp;</a>
71   - <ul id="login-menu-box" class="dropdown-menu" role="menu">
72   - <li class="last-item">
73   - <div class="wrapper">
74   - <div class="thumbnail">{% gravatar user.email %}</div>
75   - <div class="user-info">
76   - <span><b>{{ user.get_full_name }}</b></span>
77   - <span class="quiet">{{ user.email }}</span>
78   - </div>
79   - <div>
80   - <a class="btn btn-default btn-spb-profile pull-left" href="{% url 'user_profile' user.username %}">Meu perfil</a>
81   - <a class="btn btn-default pull-right" href="{% url 'logout' %}">Sair</a>
82   - </div>
83   - </div>
84   - </li>
85   - </ul>
86   - </li>
87   - {% endif %}
88   - </ul>
89 67 </div>
90 68 <div id="logo">
91 69 <a id="portal-logo" title="" href="/">
92 70 <span id="portal-title-1">Portal do</span>
93   - <h1 id="portal-title" class="corto">Software Público Brasileiro</h1>
  71 + <h1 id="portal-title" class="corto">SISP</h1>
94 72 <span id="portal-description">MINISTÉRIO DO PLANEJAMENTO, ORÇAMENTO E GESTÃO</span>
95 73 </a>
96 74 </div>
97   - <div id="portal-searchbox">
98   - <form id="nolivesearchGadget_form" action="{% url 'haystack_search' %}">
99   - <fieldset class="LSBox"><legend class="hiddenStructure">Buscar no portal</legend>
100   - <label class="hiddenStructure" for="nolivesearchGadget">Buscar no portal</label>
101   - <input name="q" type="text" size="18" value="{{ request.GET.q }}" title="Buscar no portal" placeholder="Buscar no portal" class="searchField" id="nolivesearchGadget">
102   - <input class="searchButton" type="submit" value="Buscar no portal">
103   - </fieldset>
104   - </form>
105   - </div>
106 75 <div id="social-icons">
107 76 <ul>
108 77 <li id="portalredes-facebook" class="portalredes-item">
... ... @@ -134,10 +103,6 @@
134 103 </div>
135 104 <div id="sobre">
136 105 <ul>
137   - <li id="softwarepublico-groups" class="softwarepublico-item">
138   - <a href="{% url 'thread_list' %}" title="Listas de discussão">Listas de discussão</a>
139   - </li>
140   - {% plugins_menu %}
141 106 <li id="softwarepublico-perguntas-frequentes" class="softwarepublico-item">
142 107 <a href="/social/spb/ajuda" title="Perguntas frequentes">Perguntas frequentes</a>
143 108 </li>
... ...