SHIMADA Koji
null+****@clear*****
Wed Oct 17 15:11:05 JST 2012
SHIMADA Koji 2012-10-17 15:11:05 +0900 (Wed, 17 Oct 2012) New Revision: 4b66dcab669017d3fb1348f2cb5059167c277975 https://github.com/logaling/logaling-server/commit/4b66dcab669017d3fb1348f2cb5059167c277975 Merged 337d256: Merge pull request #36 from logaling/improve-github-project-description Log: Improve description of github project - change remote repository url to github project url Added files: app/decorators/github_project_decorator.rb Modified files: app/models/github_project.rb app/views/github_projects/show.html.haml app/views/glossaries/show.html.haml Added: app/decorators/github_project_decorator.rb (+6 -0) 100644 =================================================================== --- /dev/null +++ app/decorators/github_project_decorator.rb 2012-10-17 15:11:05 +0900 (e1c6740) @@ -0,0 +1,6 @@ +# coding: utf-8 +module GithubProjectDecorator + def link_to_github + link_to(url, url) + end +end Modified: app/models/github_project.rb (+4 -0) =================================================================== --- app/models/github_project.rb 2012-10-16 19:23:45 +0900 (239f0eb) +++ app/models/github_project.rb 2012-10-17 15:11:05 +0900 (ad0fa95) @@ -37,6 +37,10 @@ class GithubProject < ActiveRecord::Base "git://github.com/#{owner}/#{name}" end + def url + "https://github.com/#{owner}/#{name}" + end + # project name for logaling def logaling_name "github-%s:%s" % [owner, name] Modified: app/views/github_projects/show.html.haml (+1 -1) =================================================================== --- app/views/github_projects/show.html.haml 2012-10-16 19:23:45 +0900 (fe93193) +++ app/views/github_projects/show.html.haml 2012-10-17 15:11:05 +0900 (3f80a56) @@ -3,7 +3,7 @@ %h1 = @github_project.full_name %p - = @github_project.remote_repository_url + = @github_project.link_to_github %ul.glossariesList - @github_project.glossaries.each do |glossary| %li Modified: app/views/glossaries/show.html.haml (+1 -1) =================================================================== --- app/views/glossaries/show.html.haml 2012-10-16 19:23:45 +0900 (352fb23) +++ app/views/glossaries/show.html.haml 2012-10-17 15:11:05 +0900 (4e2384e) @@ -5,7 +5,7 @@ =****@gloss*****_language =****@gloss*****_language %p - = @github_project.remote_repository_url + = @github_project.link_to_github %h2 登録されてる用語一覧 -****@gloss***** do |term| -------------- next part -------------- An HTML attachment was scrubbed... ダウンロード