header.html.erb
8.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
<% user = (session[:user] && User.find_by_id(session[:user])) || nil %>
<%= theme_include "user_menu", :locals => {:person => user.person} if user %>
<!-- Nova Barra de usuário -->
<div id="top-search-bar" >
<ul id="top-search-bar-content">
<li><a href='https://www.serpro.gov.br/' target="_blank">Portal Serpro</a></li>
<li><a href='http://www.suporteservico.serpro/spekxprod/psp_acionamento_intranet' target="_blank">Central de Serviços Serpro (CSS)</a></li>
<li><a href='https://prodsgp.serpro/prodsgp/home.jsp' target="_blank">Sistema de Gestão de Pessoas (SGP)</a></li>
<li><a href='https://sgi.portalcorporativo.serpro/' target="_blank">Sistema de Gestão de Informações (SGI)</a></li>
<li><a href='https://expresso.serpro.gov.br/' target="_blank">Expresso</a></li>
<li class='hide'><a href='https://expressodrive.serpro.gov.br/'>Expresso Drive</a></li>
<li class='hide'><a href='https://mantis.serpro.gov.br/'>Mantis</a></li>
<li class='hide'><a href='http://sisted.portalcorporativo.serpro/'>Sistema de Educação, Treinamento e Desenvolvimento (SISTED)</a></li>
<li class='hide'><a href='http://www.suporteservico.serpro/'>Sistema para controle de chamados (SPEKX)</a></li>
<li class='hide'><a href='https://svpc.portalcorporativo.serpro/'>Solicitação de Viagem e Prestação de Contas</a></li>
<li class='hide'><a href='http://www.siapenet.gov.br/'>Administração de RH</a></li>
<li class='hide'><a href='http://psds.portalcorporativo.serpro/'>Processo SERPRO de Desenvolvimento de Soluções</a></li>
<li class='hide'><a href='https://srhweb.portalcorporativo.serpro/'>Sistema de Recursos Humanos</a></li>
<li class='hide'><a href='http://gfct.portalcorporativo.serpro/fct/'>Função Comissionada Técnica</a></li>
<li class='hide'><a href='http://siscop.portalcorporativo.serpro/'>Controle de Frequencia</a></li>
<li class='hide'><a href='http://sinor.portalcorporativo.serpro/'>Informações Normativas</a></li>
<li class='hide'><a href='https://siscor.portalcorporativo.serpro'>Sistema Siscor</a></li>
<li class='hide'><a href='http://gfct.portalcorporativo.serpro/gfc/'>Gratificação Função Comissionada</a></li>
<li class='hide'><a href='https://hisaq.portalcorporativo.serpro/'>Histórico de Aquisições</a></li>
<li class='hide'><a href='https://oryx.serpronet.serpro'>Portfólio e Ferramenta de Modelagem de Processos</a></li>
<li class='hide'><a href='https://portfoliodeprojetos.serpro.gov.br'>ecar - Controle Acompanhamento e Avaliação de Resultados</a></li>
<li class='hide'><a href='https://acessoweb.portalcorporativo.serpro'>ACESSO - Sistema de Controle de Acesso</a></li>
<li class='hide'><a href='http://serpronet.serpro/diversos/sistemas-corporativos/infoserpro'>Informações Gerenciais</a></li>
<li class='hide'><a href='http://psgis.serpronet.serpro/'>Processo Serpro de Gerenciamento Integrado de Serviços</a></li>
<li class='hide'><a href='http://sipes.portalcorporativo.serpro/'>SIPES - Sistema Integrado de Patrimônio e Estoque</a></li>
<li class='hide'><a href='http://dotproject.serpronet.serpro'>Ferramenta Corporativa de Cronograma</a></li>
<li class='hide'><a href='https://sgdes.portalcorporativo.serpro'>GDES - Gerenciamento do Desempenho dos Empregados do Serpro</a></li>
<li class='hide'><a href='http://agendanacional.portalcorporativo.serpro'>Agenda Nacional</a></li>
<li class='hide'><a href='http://www.gedig.serpro/'>Gerenciamento Eletrônico de Documentos Digitalizados</a></li>
<li class='hide'><a href='https://gmpsds.serpronet.serpro'>GM PSDS</a></li>
<ul>
<div class='input-holder'>
<label for="search">Outro: </label>
<input placeholder="palavra chave" id="top-search-bar-input" type="text" />
</div>
<script>
(function ($, document, window) {
var availableTags = [ ];
$('#top-search-bar-content li a').each(function(){
availableTags.push({ label: $(this).text(), value: $(this).attr('href')});
});
$( "#top-search-bar-input" ).autocomplete({
source: availableTags,
select: function( event, ui ) { window.open(ui.item['value' ], '_blank'); }
});
}(jQuery, document, this));
</script>
<br/>
</div>
<% if controller_name != 'home' %>
<div id="top-bar" class="top" >
<div class="btn_control_panel btn_control" title="Painel de Controle" alt="menu">
<div class="layout_user">
<%= render :partial => 'layouts/user' %>
</div>
</div>
<!--
<div id="categories_menu">
<%= theme_include 'categories' %>
</div>
-->
<span class="btn_home" title="Página Inicial"><a href="<%=environment.top_url%>"> </a></span>
</div>
<!-- FIM Nova Barra de usuário -->
<% else %>
<header>
<div id="header-left">
<div id="logo">
<%= link_to(image_tag("/designs/themes/participa2-theme/images/medium-logo.png"), environment.top_url) %>
</div>
</div><!-- #header-left -->
<div id="header-right">
<div id="header-right-1">
<%= link_to(image_tag("/designs/themes/participa2-theme/images/tile-forum.png") + "<span class='tile-title'>" + _('CONTENT') + "</span>", {:controller => 'search', :action => 'contents', :filter => 'more_recent'}, :class => 'tile tile-forum') %>
<%= link_to(image_tag("/designs/themes/participa2-theme/images/tile-groups.png") + "<span class='tile-title'>" + _('GROUPS') + "</span>", {:controller => 'search', :action => 'communities', :filter => 'more_active'}, :class => 'tile tile-groups') %>
<%= link_to(image_tag("/designs/themes/participa2-theme/images/tile-info.png") + "<span class='tile-title'>" + _('ABOUT US') + "</span>", {:profile => 'save-organic-food'}, :class => 'tile tile-info') %>
<%= link_to(image_tag("/designs/themes/participa2-theme/images/tile-members.png") + "<span class='tile-title'>" + _('MEMBERS') + "</span>", {:controller => 'search', :action => 'people', :filter => 'more_recent'}, :class => 'tile tile-users')%>
</div><!-- #header-right-1 -->
<div id="header-right-2">
<div class="tile2">
<div id="tile-user">
<% if logged_in? %>
<span class='not-logged-in'>
<div class="tile-avatar"> <%= link_to(profile_image(current_person), current_person.url) %></div>
<div class="tile-username"><%= _('Hello,') %> <br/><%= current_person.name %> </div>
<span class='tile-title'>
<%= admin_link %>
<span> <%= _('or') %> </span>
<%= link_to(_('Logout'), :controller => :account, :action => :logout) %>
</span>
<% else %>
<span class='not-logged-in'>
<div class="tile-avatar"> <%= image_tag("/designs/themes/participa2-theme/images/avatar.gif") %></div>
<div class="tile-username"><%= _('Hello') %> <br/><%= _('Guest') %> </div>
<span class='tile-title'>
<%= thickbox_inline_popup_link('<i class="icon-menu-login"></i><strong>' + _('Login') + '</strong>', login_url, 'inlineLoginBox', :id => 'link_login') %>
<%= @plugins.dispatch(:alternative_authentication_link).collect { |content| instance_exec(&content) }.join("") %>
<% unless @plugins.dispatch(:allow_user_registration).include?(false) %>
<span> <%= _('or') %> </span>
<span class='tile-register'>
<%= link_to('<strong>' + _('Sign up') + '</strong>', :controller => 'account', :action => 'signup')%>
</span>
<% end %>
<div id='inlineLoginBox' style='display: none;'>
<%= render :file => 'account/login', :locals => { :is_thickbox => true } %>
</div>
</span>
<% end %>
</div>
</div><!-- .tile2 -->
<div class="header-right-2-bottom">
<% if logged_in? %>
<%= link_to(image_tag("/designs/themes/participa2-theme/images/tile-activities.png") + "<span class='tile-title'>" + _('ACTIVITY') + "</span>", {:controller => 'profile', :profile => current_person.identifier, :anchor => 'profile-network'}, :class => 'tile tile-activities') %>
<%= link_to(image_tag("/designs/themes/participa2-theme/images/tile-blog.png") + "<span class='tile-title'>" + _('BLOG') + "</span>", {:controller => 'profile', :profile => current_person.identifier}, :class => 'tile tile-blog') %>
<% end %>
</div><!-- .header-right-2-bottom -->
</div><!-- .header-right-2 -->
</div><!-- #header-right -->
</header>
<% end %>