Link to Github in repo readme
This commit is contained in:
parent
3c70a43de4
commit
9b7957c9c1
|
@ -15,6 +15,8 @@ class Projects extends lapis.Application
|
|||
|
||||
[readme: "/projects/:name"]: =>
|
||||
@title = "Readme for #{@params.name}"
|
||||
@name = @params.name
|
||||
|
||||
@ret, @err = oleg.get "readmes", @params.name
|
||||
|
||||
if @err
|
||||
|
|
|
@ -2,5 +2,12 @@ import Widget from require "lapis.html"
|
|||
|
||||
class Readme extends Widget
|
||||
content: =>
|
||||
raw @doc
|
||||
div class: "row", ->
|
||||
div class: "col-md-3", ->
|
||||
p class: "lead", ->
|
||||
text "Find out more at "
|
||||
a href: "https://github.com/Xe/#{@name}", "Github"
|
||||
text "."
|
||||
div class: "col-md-9", ->
|
||||
raw @doc
|
||||
|
||||
|
|
Loading…
Reference in New Issue