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=Off
+
     |#default=Draft
 
   }}
 
   }}
 
}}
 
}}
Line 74: Line 74:
  
 
-->{{#switch: {{#var: status}}
 
-->{{#switch: {{#var: status}}
     |Off      =<span class="text-danger">Hidden</span>
+
     |Draft =<span class="text-muted">Draft</span>
     |On       =<span class="text-success">Actual</span>
+
     |On   =<span class="text-success">Published</span>
     |#default =<span class="text-muted">Retired</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|}}}
+
{{#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 ######

Latest revision as of 16:50, July 21, 2020