| 1 | <!DOCTYPE html |
|---|
| 2 | PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
|---|
| 3 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
|---|
| 4 | <html xmlns="http://www.w3.org/1999/xhtml" |
|---|
| 5 | xmlns:xi="http://www.w3.org/2001/XInclude" |
|---|
| 6 | xmlns:py="http://genshi.edgewall.org/" |
|---|
| 7 | xmlns:i18n="http://genshi.edgewall.org/i18n"> |
|---|
| 8 | <xi:include href="admin.html" /> |
|---|
| 9 | <head> |
|---|
| 10 | <title>Project File Information</title> |
|---|
| 11 | </head> |
|---|
| 12 | <body> |
|---|
| 13 | <h2>Manage Project File Information</h2> |
|---|
| 14 | <py:choose test="view"> |
|---|
| 15 | <form py:when="'detail'" class="mod" id="modprojinfo" method="post" action=""> |
|---|
| 16 | <fieldset> |
|---|
| 17 | <legend>Modify Project Info</legend> |
|---|
| 18 | <div class="field"> |
|---|
| 19 | <label>Project Name:</label> |
|---|
| 20 | <input type="text" class="form-control" maxlength="255" id="projname" |
|---|
| 21 | name="projectname" value="$projectname" /> |
|---|
| 22 | </div> |
|---|
| 23 | <p class="help">Files will be grouped by this name. There is no need to use a predefined project name here.</p> |
|---|
| 24 | <div class="field"> |
|---|
| 25 | <label>Root Folder:</label> |
|---|
| 26 | <p class="help">You may browse repositories and folders here.</p> |
|---|
| 27 | <div id="repo_browser"></div> |
|---|
| 28 | |
|---|
| 29 | <label> |
|---|
| 30 | <input type="checkbox" name="follow_ext" value="1"/>Follow externals</label> |
|---|
| 31 | <p class="help">When selected files in folders referenced as Subversion externals will also be added to the |
|---|
| 32 | list of project files. Note that only externals to repositories configured in this Trac instance are |
|---|
| 33 | taken into accoun.</p> |
|---|
| 34 | <input type="text" class="form-control" maxlength="255" id="rootfolder" |
|---|
| 35 | name="rootfolder" value="$rootfolder" /> |
|---|
| 36 | </div> |
|---|
| 37 | <p class="help">The root folder in the repository holding all the project files.</p> |
|---|
| 38 | <div class="field"> |
|---|
| 39 | <label>Ignored Extensions:</label> |
|---|
| 40 | <input type="text" class="form-control" maxlength="255" id="extensions" |
|---|
| 41 | name="extensions" value="$extensions" /> |
|---|
| 42 | </div> |
|---|
| 43 | <p class="help">File extensions ignored when collecting the projects files. Use commas for separating. |
|---|
| 44 | Example: <strong>.tmb, .zip</strong>.</p> |
|---|
| 45 | <div class="buttons"> |
|---|
| 46 | <input type="submit" name="cancel" value="${_('Cancel')}" /> |
|---|
| 47 | <input type="submit" name="save" value="${_('Save')}" /> |
|---|
| 48 | </div> |
|---|
| 49 | </fieldset> |
|---|
| 50 | <p class="help">Saving may need some time because all the files for a project are gathered and processed |
|---|
| 51 | for future report generation.</p> |
|---|
| 52 | </form> |
|---|
| 53 | |
|---|
| 54 | <py:otherwise> |
|---|
| 55 | <form action="" id="addprojinfo" method="post"> |
|---|
| 56 | <fieldset> |
|---|
| 57 | <legend>Add Project Info</legend> |
|---|
| 58 | <div class="field"> |
|---|
| 59 | <label>Project Name:</label> |
|---|
| 60 | <input type="text" class="form-control" maxlength="255" id="projname" |
|---|
| 61 | name="projectname" value="$projectname" /> |
|---|
| 62 | </div> |
|---|
| 63 | <p class="help">Files will be grouped by this name. There is no need to use a predefined project name here.</p> |
|---|
| 64 | <div class="field"> |
|---|
| 65 | <label>Root Folder:</label> |
|---|
| 66 | <p class="help">You may browse repositories and folders here.</p> |
|---|
| 67 | <div id="repo_browser"></div> |
|---|
| 68 | |
|---|
| 69 | <label> |
|---|
| 70 | <input type="checkbox" name="follow_ext" value="1"/>Follow externals</label> |
|---|
| 71 | <p class="help">When selected files in folders referenced as Subversion externals will also be added to the |
|---|
| 72 | list of project files. Note that only externals to repositories configured in this Trac instance are |
|---|
| 73 | taken into accoun.</p> |
|---|
| 74 | <input type="text" class="form-control" maxlength="255" id="rootfolder" |
|---|
| 75 | name="rootfolder" value="$rootfolder" /> |
|---|
| 76 | </div> |
|---|
| 77 | <p class="help">The root folder in the repository holding all the project files.</p> |
|---|
| 78 | <div class="field"> |
|---|
| 79 | <label>Ignored Extensions:</label> |
|---|
| 80 | <input type="text" class="form-control" maxlength="255" id="extensions" |
|---|
| 81 | name="extensions" value="$extensions" /> |
|---|
| 82 | </div> |
|---|
| 83 | <p class="help">File extensions ignored when collecting the projects files. Use commas for separating. |
|---|
| 84 | Example: <strong>.tmb, .zip</strong>.</p> |
|---|
| 85 | <div class="buttons"> |
|---|
| 86 | <input name="add" value="${_('Add')}" type="submit" /> |
|---|
| 87 | </div> |
|---|
| 88 | </fieldset> |
|---|
| 89 | <p class="help">Adding a project may need some time because all the files for a project are gathered and processed |
|---|
| 90 | for future report generation.</p> |
|---|
| 91 | </form> |
|---|
| 92 | |
|---|
| 93 | <form py:if="projects" id="projinfo_table" method="post" action=""> |
|---|
| 94 | <table class="listing" id="projinfolist"> |
|---|
| 95 | <thead> |
|---|
| 96 | <tr> |
|---|
| 97 | <th class="sel"> </th> |
|---|
| 98 | <th>Project</th> |
|---|
| 99 | <th>Root Folder</th> |
|---|
| 100 | <th>Repository</th> |
|---|
| 101 | <th>Revision</th> |
|---|
| 102 | <th>Extensions</th> |
|---|
| 103 | </tr> |
|---|
| 104 | </thead> |
|---|
| 105 | <tbody> |
|---|
| 106 | <tr py:for="proj in projects"> |
|---|
| 107 | <td class="sel"><input type="checkbox" name="sel" value="${proj[0]}" /></td> |
|---|
| 108 | <td class="name"> |
|---|
| 109 | <a href="${panel_href(proj[0])}">${proj[0]}</a> |
|---|
| 110 | </td> |
|---|
| 111 | <td class="owner">${proj[1].rootfolder}</td> |
|---|
| 112 | <td>${proj[1].repo}</td> |
|---|
| 113 | <td>${proj[1].revision}</td> |
|---|
| 114 | <td class="extensions">${proj[1].extensions}</td> |
|---|
| 115 | </tr> |
|---|
| 116 | </tbody> |
|---|
| 117 | </table> |
|---|
| 118 | <div class="buttons"> |
|---|
| 119 | <input type="submit" name="remove" value="${_('Remove selected items')}" /> |
|---|
| 120 | </div> |
|---|
| 121 | </form> |
|---|
| 122 | <div py:if="not projects" class="system-message notice"> |
|---|
| 123 | <p>There is no project file information defined yet.</p> |
|---|
| 124 | </div> |
|---|
| 125 | <div> |
|---|
| 126 | <p> |
|---|
| 127 | You may define a project identifier and a root folder from the repository holding all the files |
|---|
| 128 | of a project here. |
|---|
| 129 | When saving the information all the files in the folder hierarchy are hashed and file name, |
|---|
| 130 | revision, hash and project name are inserted in the database. |
|---|
| 131 | </p> |
|---|
| 132 | <p> |
|---|
| 133 | Using the file information it is possible to create reports |
|---|
| 134 | (see <a href="${href.wiki('TracReports')}">TracReports</a> for more information) like which |
|---|
| 135 | files may need a review and more. |
|---|
| 136 | </p> |
|---|
| 137 | </div> |
|---|
| 138 | </py:otherwise> |
|---|
| 139 | </py:choose> |
|---|
| 140 | </body> |
|---|
| 141 | </html> |
|---|