Difference between revisions of "Template:Activity/Page"

From Funtoo
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 6: Line 6:
Below you can view all active community activities related to the [[{{{project}}}]] Project. Community activities are open to all and you are encouraged to get involved! To learn more about how to get involved, please see the [[{{{project}}}]] page.
Below you can view all active community activities related to the [[{{{project}}}]] Project. Community activities are open to all and you are encouraged to get involved! To learn more about how to get involved, please see the [[{{{project}}}]] page.


<div style="display: flex; flex-wrap: wrap; justify-content: flex-start;">{{#cargo_query:
{{Activity/ActiveList|project={{{project}}}}}
tables=activities
|fields=_pageName,status,CONCAT( LEFT( summary, 300 ), IF( LENGTH( summary ) > 300, '...', '' ) )=summary
|where=project="{{{project}}}" and status="active"
|order by=start_date DESC
|limit=6
|format=template
|template=Activity/List/OutputBox
|named args=yes
|more results text=
}}</div>


== All Activities ==
== All Activities ==
Line 24: Line 14:
{{#cargo_query:
{{#cargo_query:
tables=activities
tables=activities
|fields=_pageName=activity,status,summary,start_date,end_date,prev,next,kind
|fields=_pageName=activity,status,summary,start_date,end_date,issue,prev,next,kind
|where=project="{{{project}}}"
|where=project="{{{project}}}"
|details fields=summary
|details fields=summary

Latest revision as of 20:10, March 17, 2022

This is a template for displaying an activities page on a project page.