Annotation of VSyncer/dtml/VFolder.dtml, revision 1.2
1.2 ! casties 1: <dtml-if targetServer>
! 2: This is a target server. Theres nothing to see here.
! 3: <dtml-else>
! 4: <table width="100%">
! 5: <tr>
! 6: <td>View Syncer</td>
! 7: <td align="right"><dtml-var "HelpSys.HelpButton('VSyncer.stx','VSyncer')"></td>
! 8: </tr>
1.1 casties 9: <dtml-if "REQUEST.has_key('msg')">
1.2 ! casties 10: <tr>
! 11: <td colspan="2"><ul><dtml-var msg url_unquote></ul></td>
! 12: </tr>
! 13: </dtml-if>
! 14: </table>
! 15:
! 16: <dtml-call "REQUEST.set('old_folder', '')">
! 17:
! 18: <hr size="1">
! 19:
! 20: <dtml-try>
! 21:
! 22: <form method="POST" action="&dtml-absolute_url;/<dtml-if approval>manage_approval<dtml-else>manage_updateXMLRPC</dtml-if>">
! 23: <input type="hidden" name="action" value="manage_updateXMLRPC">
! 24: <input type="hidden" name="folder" value="&dtml-folder;">
! 25: <table border="0" cellpadding="2" cellspacing="0">
! 26: <tr class="list-header" align="center">
! 27: <td class="list-item">Action</td>
! 28: <td colspan="2" class="list-item" >File</td>
! 29: <td class="list-item">Status</td>
! 30: <td class="list-item">Last Modified (Source)</td>
! 31: <td class="list-item">Links</td>
! 32: </tr>
! 33: <dtml-in "manage_compare(folder)" mapping sort=id>
! 34: <dtml-let pathURL="_.string.join(path, '/')">
! 35: <tr <dtml-if sequence-even>class="row-hilite"</dtml-if>>
! 36: <td align="center" class="list-item">
1.1 casties 37: <dtml-if "_.str(status) not in ['extra']">
38: <dtml-if "not allowed_objs_sync or '/'.join(path) in allowed_objs_sync">
39: <dtml-if "status=='ok'">
40: <img src="misc_/VSyncer/checkedbox.gif" title="Syncing is not required to this object.">
1.2 ! casties 41: <dtml-else>
1.1 casties 42: <input type="checkbox" name="object:list" value="&dtml-pathURL;">
43: </dtml-if>
44: <dtml-else>
45: <img src="misc_/VSyncer/stop.gif" title='This object can not be synced'>
46: </dtml-if>
47: <dtml-else>
1.2 ! casties 48: <img src="misc_/VSyncer/stop.gif" title='This object may not found in deve server or its type has been changed.'>
1.1 casties 49: </dtml-if>
1.2 ! casties 50: </td>
! 51: <td class="list-item" align="center">
! 52: <dtml-if icon><img src="/&dtml-icon;" alt="&dtml-meta_type;"></dtml-if>
! 53: </td>
! 54: <td>
! 55: <dtml-if "is_folder and status not in ['missing', 'extra']">
! 56: <a href="&dtml-absolute_url;/manage_sync?folder=&dtml-pathURL;">&dtml-id;</a>
! 57: <dtml-else>
! 58: &dtml-id;
! 59: </dtml-if>
! 60: </td>
! 61: <td class="list-item" align="center" bgcolor="<dtml-var "status_colour(status)">"> <b>&dtml-status;</b> </td>
! 62: <td class="list-item" ><dtml-var "last_modified_time[:19]"></td>
! 63: <td class="list-item" >
! 64: <dtml-if "(_.str(status) not in ['extra', 'missing']) and (_.str(meta_type) in diffable) ">
! 65: <a href="&dtml-absolute_url;/manage_diff?object=&dtml-pathURL;&folder=<dtml-var old_folder>" target="_blank">View content difference</a>
! 66: </dtml-if>
! 67: </td>
! 68: </tr>
! 69: </dtml-let>
! 70: <dtml-else>
! 71: <tr>
! 72: <td class="list-item" colspan="20">No Syncable objects found.</td>
! 73: </tr>
! 74: </dtml-in>
! 75: <tr>
! 76: <td class="list-item" colspan="20">
! 77: <input name="manage_updateXMLRPC" type="submit" value=" Sync ">
! 78: <dtml-comment><input name="manage_updateFromDestXMLRPC:method"type="submit" value="Sync from Destination to Source">
! 79: </dtml-comment>
! 80: <br><br><strong>Note:-</strong> If the object is missing and say sync then that object gets imported
! 81: </td>
! 82: </tr>
! 83: </table>
! 84: </form>
! 85: <dtml-except>
! 86: There was a problem with that comparison.<br><br>
! 87: Error:
! 88: <ul>
! 89: <li><dtml-var error_type></li>
! 90: <li>&dtml-error_value;</li>
! 91: </ul>
! 92: Things to check:
! 93: <ul>
! 94: <li>Your destination Syncer is where it is meant to be.</li>
! 95: <li>The destination server is running and accessible.</li>
! 96: <li>The user "<dtml-var "REQUEST['AUTHENTICATED_USER']">" has the right to access Syncer.</li>
! 97: <li>The password for "<dtml-var "REQUEST['AUTHENTICATED_USER']">" is correct.</li>
! 98: </ul>
! 99: </dtml-try>
! 100:
! 101: <hr size="1">
! 102:
! 103: <p><b>Key:</b>
! 104: <ul>
! 105: <li><b>ok</b> this object is present on both destination and source and is in sync</li>
! 106: <li><b>missing</b> this object is present source but not destination, it needs syncing</li>
! 107: <li><b>extra</b> this object is on destination but not source, it needs syncing from destination</li>
! 108: <li><b>out of date</b> this object is present on both the destination and source, but has been changed on source, it needs syncing </li>
! 109: </ul>
! 110: </p>
! 111: </dtml-if>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>