Commit 1729fca7808013f7681dc3f7c6db72831c6c609b
1 parent
6ccbb859
- don't show version info for document on normal page
- highlight it on compare page - allow one-click return to normal view (since details is turned off at this point). git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5859 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
2 changed files
with
15 additions
and
35 deletions
templates/ktcore/document/compare.smarty
| 1 | 1 | <h2>{i18n}Version Comparison{/i18n}: {$document->getName()}</h2> |
| 2 | + | |
| 3 | + | |
| 2 | 4 | {capture assign=from} |
| 3 | 5 | <strong>{$document->getMajorVersionNumber()}.{$document->getMinorVersionNumber()}</strong> ({$document->getMetadataVersion()}) |
| 4 | 6 | {/capture} |
| 5 | 7 | {capture assign=to} |
| 6 | 8 | <strong>{$comparison_document->getMajorVersionNumber()}.{$comparison_document->getMinorVersionNumber()}</strong> ({$comparison_document->getMetadataVersion()}) |
| 7 | 9 | {/capture} |
| 8 | -<p class="descriptiveText"> | |
| 9 | -{i18n arg_from=$from arg_to=$to}showing comparison between versions #from# and #to#{/i18n}</p> | |
| 10 | - | |
| 11 | -<!-- | |
| 12 | - its possible that one of the versions isn't "real" | |
| 13 | - and it isn't entirely clear how to show that to the | |
| 14 | - user in the best possible way. | |
| 15 | ---> | |
| 10 | +<div class="ktInfo"><p> | |
| 11 | +{i18n arg_from=$from arg_to=$to}showing comparison between versions #from# and #to#. {/i18n} | |
| 12 | +<a href="{addQS context=$context}action=main{/addQS}">{i18n}View current version{/i18n}</a>. | |
| 13 | +</p></div> | |
| 16 | 14 | |
| 17 | 15 | {if ($document_data.is_manufactured)} |
| 18 | 16 | <p class="descriptiveText"><strong class="ktInlineError">{i18n}Please | ... | ... |
templates/kt3/view_document.smarty renamed to templates/ktcore/document/view.smarty
| 1 | 1 | <h2>{$document->getName()|escape}</h2> |
| 2 | -{capture assign=version} | |
| 3 | -{$document->getMajorVersionNumber()}.{$document->getMinorVersionNumber()} | |
| 4 | -{/capture} | |
| 5 | -<p class="descriptiveText">{i18n arg_version=$version}showing information for <strong>version | |
| 6 | -#version#</strong>{/i18n}</p> | |
| 2 | + | |
| 7 | 3 | {if ($document->getIsCheckedOut() == 1)} |
| 8 | 4 | {capture assign=checkout_user}<strong>{$sCheckoutUser}</strong>{/capture} |
| 9 | 5 | {if ($isCheckoutUser)} |
| ... | ... | @@ -47,31 +43,17 @@ these tasks, use the Request Assistance action.{/i18n} |
| 47 | 43 | <!-- Document "Views" --> |
| 48 | 44 | <div id="document-views"> |
| 49 | 45 | |
| 46 | +<div class="ktError"><p>Someone please suggest some "viewlets" we can ship by default ... | |
| 47 | +this is a tad bare.</p></div> | |
| 48 | + | |
| 49 | +{* | |
| 50 | 50 | <div class="downloadbox"> |
| 51 | 51 | <ul> |
| 52 | - <li class="view_details"><a href="#">Document Details</a></li> | |
| 53 | - <li class="download"><a href="#">Download</a></li> | |
| 54 | - <li class="checkout"><a href="#">Checkout</a></li> | |
| 55 | - <li class="checkin"><a href="#">Check-in</a></li> | |
| 56 | - <li class="cancel_checkout"><a href="#">Cancel Checkout</a></li> | |
| 52 | + {foreach from=$viewlet_info item=aInfo} | |
| 53 | + <li class="{$aInfo.icon_class}"><a href="{$aInfo.url}">{$aInfo.name}</a></li> | |
| 54 | + {/foreach} | |
| 57 | 55 | </ul> |
| 58 | - <span class="descriptiveText" style="font-size: xx-small">Note: this is a mockup - only some would be here, obviously.</span> | |
| 59 | 56 | </div> |
| 57 | +*} | |
| 60 | 58 | |
| 61 | -<div class="viewlet"> | |
| 62 | - <h3>Information about "asd asd s"</h3> | |
| 63 | -<ul class="actionlist"> | |
| 64 | -<li><a href="http://ktdevlocal/knowledgeTree-csstidy/control.php?action=viewDocument&qs=action%3Dhistory%26fDocumentId%3D8" | |
| 65 | - >Transaction History</a></li> | |
| 66 | -<li><a href="http://ktdevlocal/knowledgeTree-csstidy/control.php?action=viewDocument&qs=action%3Dversionhistory%26fDocumentId%3D8" | |
| 67 | - >Version History</a></li> | |
| 68 | -<li><a href="/knowledgeTree-csstidy/action.php?kt_path_info=ktcore.actions.document.permissions&fDocumentId=8" | |
| 69 | - >Permissions</a></li> | |
| 70 | -<li><a href="/knowledgeTree-csstidy/action.php?kt_path_info=ktcore.actions.document.roles&fDocumentId=8" | |
| 71 | - >View Roles</a></li> | |
| 72 | -<li><a href="/knowledgeTree-csstidy/action.php?kt_path_info=ktcore.actions.document.discussion&fDocumentId=8" | |
| 73 | - >Discussion</a></li> | |
| 74 | -</ul> | |
| 75 | 59 | </div> |
| 76 | - | |
| 77 | -</div> | |
| 78 | 60 | \ No newline at end of file | ... | ... |