uenf_layout 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/app/views/layouts/_footer.html.erb +1 -3
- data/lib/uenf_layout.rb +15 -1
- metadata +3 -3
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
<address>
|
|
2
|
-
|
|
3
|
-
<%= UenfLayout.config.rodape %>, versão <%= APP_VERSION %>.
|
|
4
|
-
<% end %>
|
|
2
|
+
<%= UenfLayout.config.nome_sistema_rodape %><%= ", versão #{UenfLayout.config.versao}." if UenfLayout.config.versao %>
|
|
5
3
|
<br>
|
|
6
4
|
<a href="http://www.uenf.br"><acronym title="Universidade Estadual do Norte Fluminense Darcy Ribeiro">UENF</acronym></a>/<acronym title="Diretoria de Informação e Comunicação">DIC</acronym>/<acronym title="Gerência de Informação">GINFO</acronym>/Desenvolvimento, 2012 -
|
|
7
5
|
Contatos do site: (22) 2739-7232, <a href="mailto:desenv@uenf.br">desenv@uenf.br</a><br/>
|
data/lib/uenf_layout.rb
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
require 'haml'
|
|
2
|
+
|
|
1
3
|
module UenfLayout
|
|
2
4
|
module Rails
|
|
3
5
|
class Engine < ::Rails::Engine
|
|
@@ -11,6 +13,18 @@ module UenfLayout
|
|
|
11
13
|
end
|
|
12
14
|
|
|
13
15
|
class Configuration
|
|
14
|
-
attr_accessor :nome_sistema, :setor
|
|
16
|
+
attr_accessor :nome_sistema, :setor
|
|
17
|
+
attr_writer :nome_sistema_rodape
|
|
18
|
+
|
|
19
|
+
def versao
|
|
20
|
+
unless @versao
|
|
21
|
+
@versao = `git describe --abbrev=0 --tags`.chomp rescue nil
|
|
22
|
+
end
|
|
23
|
+
@versao
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def nome_sistema_rodape
|
|
27
|
+
@nome_sistema_rodape || @nome_sistema
|
|
28
|
+
end
|
|
15
29
|
end
|
|
16
30
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: uenf_layout
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.3.0
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-
|
|
12
|
+
date: 2012-08-29 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|
|
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
94
94
|
version: '0'
|
|
95
95
|
requirements: []
|
|
96
96
|
rubyforge_project:
|
|
97
|
-
rubygems_version: 1.8.
|
|
97
|
+
rubygems_version: 1.8.24
|
|
98
98
|
signing_key:
|
|
99
99
|
specification_version: 3
|
|
100
100
|
summary: Layout dos sistemas UENF
|