Class: Smeagol::Views::Versions
- Defined in:
- lib/smeagol/views/versions.rb
Instance Method Summary collapse
-
#content ⇒ Object
Public: The HTML formatted content of the page.
-
#source_url ⇒ Object
Public: The URL of the project source code.
-
#wiki_title ⇒ Object
Public: The title of the wiki.
Methods inherited from Base
#initialize, #menu_html, #ribbon_html, #tagline, #tracking_id
Constructor Details
This class inherits a constructor from Smeagol::Views::Base
Instance Method Details
#content ⇒ Object
Public: The HTML formatted content of the page.
10 11 12 13 14 15 16 |
# File 'lib/smeagol/views/versions.rb', line 10 def content html = "<a href=\"/\">Current</a><br/>" wiki.repo..each do |tag| html << "<a href=\"/#{tag.name}\">#{tag.name}</a><br/>" end html end |
#source_url ⇒ Object
Public: The URL of the project source code. This is set in the settings file.
20 21 22 |
# File 'lib/smeagol/views/versions.rb', line 20 def source_url wiki.settings.source_url end |
#wiki_title ⇒ Object
Public: The title of the wiki. This is set in the settings file.
5 6 7 |
# File 'lib/smeagol/views/versions.rb', line 5 def wiki_title wiki.settings.title end |