diff options
| author | Dan Allen <dallen@redhat.com> | 2013-06-06 19:06:00 -0600 |
|---|---|---|
| committer | Dan Allen <dallen@redhat.com> | 2013-06-06 19:06:00 -0600 |
| commit | 7320c13561772b46d84504fcf3fddc72eedb172a (patch) | |
| tree | 638f1085b405d6a1a9ca3b74ab994974c1eae5b3 /lib | |
| parent | 0ccec419fa44d958a46eaac365b8c8b64072329c (diff) | |
use labels for version and last updated
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/asciidoctor/backends/html5.rb | 8 | ||||
| -rw-r--r-- | lib/asciidoctor/document.rb | 2 |
2 files changed, 7 insertions, 3 deletions
diff --git a/lib/asciidoctor/backends/html5.rb b/lib/asciidoctor/backends/html5.rb index 6d331662..55796bbe 100644 --- a/lib/asciidoctor/backends/html5.rb +++ b/lib/asciidoctor/backends/html5.rb @@ -127,7 +127,7 @@ unless noheader %> end end if attr? :revnumber %> -<span id="revnumber">version <%= attr :revnumber %><%= (attr? :revdate) ? ',' : '' %></span><% +<span id="revnumber"><%= ((attr 'version-label') || '').downcase %> <%= attr :revnumber %><%= (attr? :revdate) ? ',' : '' %></span><% end if attr? :revdate %> <span id="revdate"><%= attr :revdate %></span><% @@ -160,9 +160,11 @@ end %> <div id="footer"> <div id="footer-text"><% if attr? :revnumber %> -Version <%= attr :revnumber %><br><% +<%= %(\#{attr 'version-label'} \#{attr :revnumber}) %><% +end +if attr? 'last-update-label' %> +<%= %(\#{attr 'last-update-label'} \#{attr :docdatetime}) %><% end %> -Last updated <%= attr :docdatetime %> </div> </div> </body> diff --git a/lib/asciidoctor/document.rb b/lib/asciidoctor/document.rb index bc9e74fb..565e1f83 100644 --- a/lib/asciidoctor/document.rb +++ b/lib/asciidoctor/document.rb @@ -160,6 +160,8 @@ class Document < AbstractBlock #@attributes['listing-caption'] = 'Listing' @attributes['table-caption'] = 'Table' @attributes['toc-title'] = 'Table of Contents' + @attributes['version-label'] = 'Version' + @attributes['last-update-label'] = 'Last updated' # attribute overrides are attributes that can only be set from the commandline # a direct assignment effectively makes the attribute a constant |
