Add a changelog_url helper so that pods can report a more correct changelog
This commit is contained in:
parent
880d440f3b
commit
ff7308685a
2 changed files with 6 additions and 1 deletions
|
|
@ -11,6 +11,11 @@ module ApplicationHelper
|
||||||
AppConfig.version.number.present? ? AppConfig.version.number : ""
|
AppConfig.version.number.present? ? AppConfig.version.number : ""
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def changelog_url
|
||||||
|
url = "https://github.com/diaspora/diaspora/blob/master/Changelog.md"
|
||||||
|
url.sub!('/master/', "/#{AppConfig.git_revision}/") if AppConfig.git_available?
|
||||||
|
end
|
||||||
|
|
||||||
def how_long_ago(obj)
|
def how_long_ago(obj)
|
||||||
timeago(obj.created_at)
|
timeago(obj.created_at)
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
%li= link_to '@joindiaspora', "http://twitter.com/joindiaspora"
|
%li= link_to '@joindiaspora', "http://twitter.com/joindiaspora"
|
||||||
%li= link_to 'github', "https://github.com/diaspora/diaspora"
|
%li= link_to 'github', "https://github.com/diaspora/diaspora"
|
||||||
%li= link_to t('layouts.header.blog'), "http://blog.diasporafoundation.org/"
|
%li= link_to t('layouts.header.blog'), "http://blog.diasporafoundation.org/"
|
||||||
%li= link_to t('layouts.application.whats_new'), 'https://github.com/diaspora/diaspora/blob/master/Changelog.md'
|
%li= link_to t('layouts.application.whats_new'), changelog_url
|
||||||
%li= link_to(t('layouts.header.code') + " " + pod_version, "#{root_path.chomp('/')}/source.tar.gz", {:title => t('layouts.application.source_package')}) unless request.url.match(/joindiaspora.com/)
|
%li= link_to(t('layouts.header.code') + " " + pod_version, "#{root_path.chomp('/')}/source.tar.gz", {:title => t('layouts.application.source_package')}) unless request.url.match(/joindiaspora.com/)
|
||||||
%li= link_to(t('layouts.application.toggle'), toggle_mobile_path)
|
%li= link_to(t('layouts.application.toggle'), toggle_mobile_path)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue