Class: Smeagol::Views::Versions

Inherits:
Base
  • Object
show all
Defined in:
lib/smeagol/views/versions.rb

Instance Method Summary collapse

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

#contentObject

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.tags.each do |tag|
    html << "<a href=\"/#{tag.name}\">#{tag.name}</a><br/>"
  end
  html
end

#source_urlObject

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_titleObject

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