Difference between revisions of "Template:News"
From Earth Science Information Partners (ESIP)
(3 intermediate revisions by the same user not shown) | |||
Line 59: | Line 59: | ||
}} | }} | ||
}} | }} | ||
− | |#default= | + | |#default=Draft |
}} | }} | ||
}} | }} | ||
Line 74: | Line 74: | ||
-->{{#switch: {{#var: status}} | -->{{#switch: {{#var: status}} | ||
− | | | + | |Draft =<span class="text-muted">Draft</span> |
− | |On | + | |On =<span class="text-success">Published</span> |
− | | | + | |Off =<span class="text-danger">Expired</span> |
}} {{#switch: Yes | }} {{#switch: Yes | ||
|{{{News is sticky|}}} | |{{{News is sticky|}}} | ||
Line 106: | Line 106: | ||
</div><!-- | </div><!-- | ||
− | ####### NEWS FEED ####### | + | ####### DISABLING NEWS FEED ####### |
− | + | {{#if: {{{News feed|}}} | |
|<div class="d-flex"> | |<div class="d-flex"> | ||
<div class="text-muted" style="width:100px">News feed:</div>{{#queryformlink: form=News filter | <div class="text-muted" style="width:100px">News feed:</div>{{#queryformlink: form=News filter | ||
Line 121: | Line 121: | ||
|_run=1 | |_run=1 | ||
}}</div> | }}</div> | ||
− | }} <!-- | + | }} |
+ | --> <!-- | ||
###### NEWS TAG ###### | ###### NEWS TAG ###### |