<% Site.online %> |
macro rendering online-status |
Sourcecode in Site/macros.js:
1: function online_macro(param) { 2: if (param.as == "editor") { 3: var inputParam = this.createCheckBoxParam("online", param); 4: if (req.data.save && !req.data.online) 5: delete inputParam.checked; 6: Html.checkBox(inputParam); 7: } else if (this.online) 8: res.write(param.yes ? param.yes : getMessage("generic.yes")); 9: else 10: res.write(param.no ? param.no : getMessage("generic.no")); 11: return; 12: } |