tiki-flaggedrev_approval_header.tpl 2.44 KB
Newer Older
1
{* $Id$ *}
2
{if $prefs.flaggedrev_approval eq 'y' and $revision_approval}
3
	{if ($revision_approved or $revision_displayed) and $revision_approved neq $lastVersion and $tiki_p_wiki_view_latest eq 'y'}
4
		{if $lastVersion eq $revision_displayed}
5
			{remarksbox type=warning title="{tr}Content waiting for approval{/tr}"}
6 7 8 9 10
				<p>
					{tr}You are currently viewing the latest version of the page.{/tr}
					{if $revision_approved}
						{tr}You can also view the {self_link}latest approved version{/self_link}.{/tr}
					{/if}
11 12 13
					{if $tiki_p_wiki_approve eq 'y'}
						{tr}You can approve this revision and make it available to a wider audience. Make sure you review all the changes before approving.{/tr}
					{/if}
14
				</p>
15 16 17 18 19 20 21 22
				{if $tiki_p_wiki_approve eq 'y'}
					<form method="post" action="{$page|sefurl}">
						{if $revision_approved}
							<p><a href="tiki-pagehistory.php?page={$page|escape:'url'}&compare&oldver={$revision_approved|escape:'url'}&diff_style={$prefs.default_wiki_diff_style|escape:'url'}">{tr}Show changes since last approved revision{/tr}</a></p>
						{else}
							<p>{tr}This page has no prior approved revision. <strong>All of the content must be reviewed.</strong>{/tr}</p>
						{/if}
						<div class="submit">
23
							<input type="hidden" name="revision" value="{$revision_displayed|escape}">
24
							<input type="submit" class="btn btn-default btn-sm" name="approve" value="{tr}Approve current revision{/tr}">
25 26 27 28 29
						</div>
					</form>
				{/if}
			{/remarksbox}
		{else}
chealer's avatar
chealer committed
30
			{remarksbox type=comment title="{tr}Content waiting for approval{/tr}"}{* One ministry using flagged revisions has upgraded this message from a comment to a warning, to attract more attention to it. There is no intermediary level between comment and warning. Chealer 2017-06-01 *}
31 32
				<p>
					{tr}You are currently viewing the approved version of the page.{/tr}
33
					{if $revision_approved and $tiki_p_wiki_view_latest eq 'y'}
34 35 36
						{tr}You can also view the {self_link latest=1}latest version{/self_link}.{/tr}
					{/if}
				</p>
37 38
			{/remarksbox}
		{/if}
chealer's avatar
chealer committed
39
	{elseif ! $revision_approved and $tiki_p_wiki_view_latest eq 'y'}{* How does this case differ from the last? If this one happens when viewing an unapproved version other than the latest, shouldn't this be stated explicitly? Chealer 2017-06-01 *}
40 41 42 43
		{remarksbox type=comment title="{tr}Content waiting for approval{/tr}"}
			<p>
				{tr}View the {self_link latest=1}latest version{/self_link}.{/tr}
			</p>
44 45 46
		{/remarksbox}
	{/if}
{/if}