do
if location == null then return null
var source = ctx.opt_source.value
- if source == null then return "({location.file.filename.simplify_path})"
+ if source == null then return "{location.file.filename.simplify_path}"
# THIS IS JUST UGLY ! (but there is no replace yet)
var x = source.split_with("%f")
source = x.join(location.file.filename.simplify_path)
x = source.split_with("%L")
source = x.join(location.line_end.to_s)
source = source.simplify_path
- return " (<a target='_blank' title='Show source' href=\"{source.to_s}\">source</a>)"
+ return "<a target='_blank' title='Show source' href=\"{source.to_s}\">View Source</a>"
end
# MProject description template
redef fun rendering do
if is_empty then return
add "<article id='{id}' class='{css_classes.join(" ")}'>"
+ if source_link != null then
+ add "<div class='source-link'>"
+ add source_link.as(not null)
+ add "</div>"
+ end
if title != null then
var lvl = hlvl
if lvl == 2 then title_classes.add "well well-sm"
if content != null then
add content.as(not null)
end
- if source_link != null then
- add source_link.as(not null)
- end
for child in children do
add child
end