Skip to content

Commit

Permalink
templates for the smw plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Fiers committed Jun 15, 2012
1 parent e8878c0 commit 6d4cb33
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 0 deletions.
17 changes: 17 additions & 0 deletions lib/python/moa/plugin/job/smw/templates/blogmessage.jinja2
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
== Blog entry ==

{| style="color: black; background-color: #ffffff;" width="100%" class="wikitable"
! Project
| [[MoaProject::moa/{{smw.project}}]]
|-
! Job
| [[MoaJob::{{smw.smwjobid }}]]
|-
! Teaser
| [[MoaBlogTeaser::{{smw.teaser}}]]
|}

{{smw.message}}

[[Category:Moa]]
[[Category:MoaBlogEntry]]
32 changes: 32 additions & 0 deletions lib/python/moa/plugin/job/smw/templates/default/Moa.smw
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
= Most recent Moa projects =
{{#ask: [[Category:MoaProject]]
|? MoaHost
|? MoaPath
|? Modification date
|sort=Modification date
|order=desc
|limit=10
}}


= Most recent jobs =
{{#ask: [[Category:MoaJob]]
|? MoaHost=Host
|? MoaPath=Path
|? MoaJobTitle
|? Modification date
|sort=Modification date
|order=desc
|limit=20
}}


= Most recent changelog entries =
{{#ask: [[Category:MoaChangeMessage]]
|? MoaChangeMessage=Message
|? MoaCommandLine=Command line
|? Modification date
|sort=Modification date
|order=desc
|limit=10
}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
A one line teaser for a blog entry

This is of type: [[Has type::String]]

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Relates to this moa job

0 comments on commit 6d4cb33

Please sign in to comment.