X-Git-Url: http://nitlanguage.org diff --git a/contrib/nitrpg/src/templates/templates_base.nit b/contrib/nitrpg/src/templates/templates_base.nit index 9b28d57..8b85a4d 100644 --- a/contrib/nitrpg/src/templates/templates_base.nit +++ b/contrib/nitrpg/src/templates/templates_base.nit @@ -17,7 +17,7 @@ # Base HTML rendering templates for `nitpg`. module templates_base -import statistics +import achievements redef class GameEntity @@ -50,3 +50,24 @@ redef class Issue # Return a HTML link to this Issue. fun link: String do return "#{number}" end + +redef class Achievement + # Return a HTML link to this Issue. + fun link: String do return "{name}" + + fun list_item: String do + return """
+
+ + +{{{reward}}} +
+
+

{{{link}}}

+ {{{desc}}} +
+
""" + + end +end