Skip to content
Browse files

Modified project view

  • Loading branch information...
1 parent e12b98e commit 1d7139a2b15e5502e2601a1a17f1d127120c167c @sinnerinc sinnerinc committed Oct 10, 2012
View
BIN Documentation/images-ext/Parameters View.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Documentation/images-ext/Project View.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
27 Source/Kaizen/css/ext.styles.css
@@ -142,6 +142,33 @@ div.section a.msbuildMessagesOff { background-position: 0px -32px; }
margin-right: 4px;
}
+/* Project report view */
+td.data a.report,
+td.data a.externalLink {
+ display: block;
+ background-repeat: no-repeat;
+ padding: 0 5px 0 36px;
+ height:32px;
+ float: left;
+ text-decoration: none;
+ font-size: 150%;
+ line-height: 32px;
+ color: #9D9999;
+}
+
+td.data a.report:hover,
+td.data a.externalLink:hover {
+ color: #000000;
+}
+
+td.data a.report {
+ background-image: url('../images/ext/report.ReportLink32.png');
+}
+
+td.data a.externalLink {
+ background-image: url('../images/ext/report.ExternalLink32.png');
+}
+
/* Tree
----------------------------------------*/
.indent-tree { padding-left: 15px; }
View
BIN Source/Kaizen/images/ext/fplogo.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Source/Kaizen/images/ext/report.ExternalLink32.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Source/Kaizen/images/ext/report.ReportLink128.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Source/Kaizen/images/ext/report.ReportLink32.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN Source/Kaizen/images/ext/report.ReportLink64.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
614 Source/Kaizen/templates/AdministerDashboard.vm
@@ -1,365 +1,251 @@
-<!-- AdministerDashboard.vm: Start -->
-<script type="text/javascript" src="Themes/Kaizen/js/administration.js"></script>
-
-<div id="PackageImportDialog" class="dialog">
- <form method="post" enctype="multipart/form-data">
- <table>
- <tr>
- <td>
- <label for="packageLocation">Package:</label>
- </td>
- <td>
- <input type="file" name="package" id="packageLocation" />
- </td>
- </tr>
- <tr>
- <td colspan="2">
- <input type="submit" class="button" name="Action" value="Import" />
- </td>
- </tr>
- </table>
- </form>
-</div>
-<div id="LogDialog" class="dialog">
- <ol>
- #foreach ($Event in $Events)
- <li class="$Event.Level">$Event.Message</li>
- #end
- </ol>
-</div>
-<div id="ServerDeleteDialog" class="dialog">
- <form method="post">
- <table>
- <tr>
- <td class="data strong">Are you sure you want to delete the server '<span id="deleteServerLabel">Name</span>'?</td>
- </tr>
- <tr>
- <td>&nbsp;</td>
- </tr>
- <tr>
- <td class="right">
- <input type="hidden" name="type" value="server" />
- <input type="hidden" name="ServerName" id="deleteServerField" />
- <input type="submit" name="Action" value="Delete" />
- <input type="button" id="cancelDeleteServer" value="Cancel" />
- </td>
- </tr>
- </table>
- </form>
-</div>
-<div id="PackageDetailsDialog" class="dialog">
- <form method="post">
- <table>
- <tr>
- <td>
- <label for="PackageDetailsDialogName" class="data strong">Name</label>
- </td>
- <td>
- <span id="PackageDetailsDialogName">Name</span>
- </td>
- </tr>
- <tr>
- <td>
- <label for="PackageDetailsDialogDescription" class="data strong">Description</label>
- </td>
- <td>
- <span id="PackageDetailsDialogDescription">Description</span>
- </td>
- </tr>
- <tr>
- <td colspan="2">
- <input type="hidden" name="type" value="package" />
- <input type="hidden" name="PackageName" id="nameOfPackage" />
- <input type="submit" id="installButton" name="action" />
- <input type="submit" id="removeButton" name="action" value="Remove" />
- </td>
- </tr>
- </table>
- </form>
-</div>
-<div id="ServerDetailsDialog" class="dialog">
- <form method="post" onSubmit="return ValidateServerDetailsDialog()">
- <table>
- <tr>
- <td>
- <label for="serverName" class="data strong">Name</label>
- </td>
- <td>
- <input type="hidden" class="text" id="oldName" name="oldName" />
- <input type="text" class="text" id="serverName" name="newName" />
- </td>
- </tr>
- <tr>
- <td>
- <label for="serverUri" class="data strong">URI</label>
- </td>
- <td>
- <input type="text" class="text" id="serverUri" name="serverUri" />
- </td>
- </tr>
- <tr>
- <td colspan="2">&nbsp;</td>
- </tr>
- <tr>
- <td colspan="2">
- <input type="checkbox" id="serverForceBuild" name="serverForceBuild" />
- <label for="serverForceBuild">Enable forcing and aborting builds</label>
- </td>
- </tr>
- <tr>
- <td colspan="2">
- <input type="checkbox" id="serverStartStop" name="serverStartStop" />
- <label for="serverStartStop">Enable starting and stoping project on server</label>
- </td>
- </tr>
- <tr>
- <td colspan="2">
- <input type="hidden" name="type" value="server" />
- <input type="button" class="dialog-link" id="deleteServer" name="action" value="Delete" />
- <input type="submit" name="action" value="Save" />
- <input type="button" id="cancelServer" value="Cancel" />
- </td>
- </tr>
- </table>
- </form>
-</div>
-
-#if ($Result.Length > 0)
-<div class="message success">
- <span>$Result</span>
- #if ($Events)
- <input type="button" value="View Log" id="viewLogButton" />
- #end
- #if ($InstallPackage.Length > 0)
- <form method="post">
- <input type="hidden" name="PackageName" value="$InstallPackage" />
- <input type="submit" name="Action" value="Install" />
- </form>
- #end
-</div>
-#end
-#if ($Error != "")
-<div class="message failed">
- <span>$Error</span>
- #if ($Events)
- <span>(<a href="#" id="viewLogLink">View Log</a>)</span>
- #end
-</div>
-#end
-
-<div class="section">
- <h1 class="title">
- <span class="title">Administration Dashboard</span>
- <span class="title-data">
- <form method="post">
- <input type="hidden" name="Action" value="Reload dashboard" />
- <span class="reload-button icon icon-reload"><input type="submit" value="Reload dashboard" /></span>
- </form>
- <form method="post">
- <input type="hidden" name="Action" value="Logout" />
- <span class="logout-button icon icon-large-logout"><input type="submit" value="Logout" /></span>
- </form>
- </span>
- </h1>
-</div>
-
-<div id="Servers" class="section">
- <h1 class="title">
- <span class="title">Remote Servers</span>
- </h1>
- <div class="section-content">
- <table>
- <tr>
- <td class="label strong">Name</td>
- <td class="label strong">Link</td>
- </tr>
- #foreach ($Server in $Servers)
- <tr>
- <td class="data strong">
- <a class="dialog-link">
- <span class="data-name">$Server.Name</span>
- </a>
-
- #if ($Server.AllowForceBuild)
- <span class="data-force-build-enabled hidden"></span>
- #else
- <span class="data-force-build-disabled hidden"></span>
- #end
-
- #if ($Server.AllowStartStopBuild)
- <span class="data-start-enabled hidden"></span>
- #else
- <span class="data-start-disabled hidden"></span>
- #end
- </td>
- <td class="data">
- <a class="dialog-link">
- <span class="data-url">$Server.Url</span>
- </a>
- </td>
- </tr>
- #end
- <tr>
- <td colspan="2">
- <form method="post">
- <input type="button" id="addServerButton" value="Add New Server" class="dialog-link" />
- </form>
- </td>
- </tr>
- </table>
- </div>
-</div>
-<div id="Packages" class="section">
- <h1 class="title">
- <span class="title">Packages</span>
- </h1>
- <div class="section-content">
- <table>
- <tr>
- <td colspan="3">
- <h2> <!-- Yes, it sucks, change to some more html-compatible construct.. -->
- Dashboard Packages
- </h2>
- </td>
- </tr>
- <tr>
- <td class="label strong">Name</td>
- <td class="label strong">Description</td>
- <td class="label strong">Status</td>
- </tr>
-
- #foreach ($Package in $DashboardPackages)
- <tr>
- <td class="data strong">
- <a class="dialog-link">
- <span class="data-name">$Package.Name</span>
- </a>
- <span class="hidden data-filename">$Package.FileName</span>
- </td>
- <td class="data"><span class="data-description">$Package.Description</span></td>
- <td class="data">
- #if ($Package.IsInstalled)
- <span class="data-installed">[Installed]</span>
- #else
- <span class="data-not-installed">[Not installed]</span>
- #end
- </td>
- </tr>
- #end
-
- <tr>
- <td colspan="3">
- <h2>
- <!-- Yes, it sucks, change to some more html-compatible construct.. -->
- Server Packages
- </h2>
- </td>
- </tr>
- <tr>
- <td class="label strong">Name</td>
- <td class="label strong">Description</td>
- <td class="label strong">Status</td>
- </tr>
- #foreach ($Package in $ServerPackages)
- <tr>
- <td class="data strong">
- <a class="dialog-link">
- <span class="data-name">$Package.Name</span>
- </a>
- <span class="hidden data-filename">$Package.FileName</span>
- </td>
- <td class="data">
- <span class="data-description">$Package.Description</span>
- </td>
- <td class="data">
- #if ($Package.IsInstalled)
- <span class="data-installed">[Installed]</span>
- #else
- <span class="data-not-installed">[Not installed]</span>
- #end
- </td>
- </tr>
- #end
-
- <tr>
- <td colspan="3">
- <h2>
- <!-- Yes, it sucks, change to some more html-compatible construct.. -->
- Project Packages
- </h2>
- </td>
- </tr>
- <tr>
- <td class="label strong">Name</td>
- <td class="label strong">Description</td>
- <td class="label strong">Status</td>
- </tr>
-
- #foreach ($Package in $ProjectPackages)
- <tr>
- <td class="data strong">
- <a class="dialog-link">
- <span class="data-name">$Package.Name</span>
- </a>
- <span class="hidden data-filename">$Package.FileName</span>
- </td>
- <td class="data">
- <span class="data-description">$Package.Description</span>
- </td>
- <td class="data">
- #if ($Package.IsInstalled)
- <span class="data-installed">[Installed]</span>
- #else
- <span class="data-not-installed">[Not installed]</span>
- #end
- </td>
- </tr>
- #end
-
-
- <tr>
- <td colspan="3">
- <h2>
- <!-- Yes, it sucks, change to some more html-compatible construct.. -->
- Build Packages
- </h2>
- </td>
- </tr>
- <tr>
- <td class="label strong">Name</td>
- <td class="label strong">Description</td>
- <td class="label strong">Status</td>
- </tr>
-
- #foreach ($Package in $BuildPackages)
- <tr>
- <td class="data strong">
- <a class="dialog-link">
- <span class="data-name">$Package.Name</span>
- </a>
- <span class="hidden data-filename">$Package.FileName</span>
- </td>
- <td class="data">
- <span class="data-description">$Package.Description</span>
- </td>
- <td class="data">
- #if ($Package.IsInstalled)
- <span class="data-installed">[Installed]</span>
- #else
- <span class="data-not-installed">[Not installed]</span>
- #end
- </td>
- </tr>
- #end
-
- <tr>
- <td colspan="3">
- <form method="post">
- <input type="button" id="loadPackageButton" value="Load Package" class="dialog-link" />
- </form>
- </td>
- </tr>
- </table>
- </div>
-</div>
+<!-- AdministerDashboard.vm: Start -->
+<script type="text/javascript" src="Themes/Kaizen/js/administration.js"></script>
+
+<div id="PackageImportDialog" class="dialog">
+ <form method="post" enctype="multipart/form-data">
+ <table>
+ <tr>
+ <td>
+ <label for="packageLocation">Package:</label>
+ </td>
+ <td>
+ <input type="file" name="package" id="packageLocation" />
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <input type="submit" class="button" name="Action" value="Import" />
+ </td>
+ </tr>
+ </table>
+ </form>
+</div>
+<div id="LogDialog" class="dialog">
+ <ol>
+ #foreach ($Event in $Events)
+ <li class="$Event.Level">$Event.Message</li>
+ #end
+ </ol>
+</div>
+<div id="ServerDeleteDialog" class="dialog">
+ <form method="post">
+ <table>
+ <tr>
+ <td class="data strong">Are you sure you want to delete the server '<span id="deleteServerLabel">Name</span>'?</td>
+ </tr>
+ <tr>
+ <td>&nbsp;</td>
+ </tr>
+ <tr>
+ <td class="right">
+ <input type="hidden" name="type" value="server" />
+ <input type="hidden" name="ServerName" id="deleteServerField" />
+ <input type="submit" name="Action" value="Delete" />
+ <input type="button" id="cancelDeleteServer" value="Cancel" />
+ </td>
+ </tr>
+ </table>
+ </form>
+</div>
+<div id="PackageDetailsDialog" class="dialog">
+ <form method="post">
+ <table>
+ <tr>
+ <td>
+ <label for="PackageDetailsDialogName" class="data strong">Name</label>
+ </td>
+ <td>
+ <span id="PackageDetailsDialogName">Name</span>
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <label for="PackageDetailsDialogDescription" class="data strong">Description</label>
+ </td>
+ <td>
+ <span id="PackageDetailsDialogDescription">Description</span>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <input type="hidden" name="type" value="package" />
+ <input type="hidden" name="PackageName" id="nameOfPackage" />
+ <input type="submit" id="installButton" name="action" />
+ <input type="submit" id="removeButton" name="action" value="Remove" />
+ </td>
+ </tr>
+ </table>
+ </form>
+</div>
+<div id="ServerDetailsDialog" class="dialog">
+ <form method="post" onSubmit="return ValidateServerDetailsDialog()">
+ <table>
+ <tr>
+ <td>
+ <label for="serverName" class="data strong">Name</label>
+ </td>
+ <td>
+ <input type="hidden" class="text" id="oldName" name="oldName" />
+ <input type="text" class="text" id="serverName" name="newName" />
+ </td>
+ </tr>
+ <tr>
+ <td>
+ <label for="serverUri" class="data strong">URI</label>
+ </td>
+ <td>
+ <input type="text" class="text" id="serverUri" name="serverUri" />
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">&nbsp;</td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <input type="checkbox" id="serverForceBuild" name="serverForceBuild" />
+ <label for="serverForceBuild">Enable forcing and aborting builds</label>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <input type="checkbox" id="serverStartStop" name="serverStartStop" />
+ <label for="serverStartStop">Enable starting and stoping project on server</label>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <input type="hidden" name="type" value="server" />
+ <input type="button" class="dialog-link" id="deleteServer" name="action" value="Delete" />
+ <input type="submit" name="action" value="Save" />
+ <input type="button" id="cancelServer" value="Cancel" />
+ </td>
+ </tr>
+ </table>
+ </form>
+</div>
+
+#if ($Result.Length > 0)
+<div class="message success">
+ <span>$Result</span>
+ #if ($Events)
+ <input type="button" value="View Log" id="viewLogButton" />
+ #end
+ #if ($InstallPackage.Length > 0)
+ <form method="post">
+ <input type="hidden" name="PackageName" value="$InstallPackage" />
+ <input type="submit" name="Action" value="Install" />
+ </form>
+ #end
+</div>
+#end
+#if ($Error != "")
+<div class="message failed">
+ <span>$Error</span>
+ #if ($Events)
+ <span>(<a href="#" id="viewLogLink">View Log</a>)</span>
+ #end
+</div>
+#end
+
+<div class="section">
+ <h1 class="title">
+ <span class="title">Administration Dashboard</span>
+ <span class="title-data">
+ <form method="post">
+ <input type="hidden" name="Action" value="Reload dashboard" />
+ <span class="reload-button icon icon-reload"><input type="submit" value="Reload dashboard" /></span>
+ </form>
+ <form method="post">
+ <input type="hidden" name="Action" value="Logout" />
+ <span class="logout-button icon icon-large-logout"><input type="submit" value="Logout" /></span>
+ </form>
+ </span>
+ </h1>
+</div>
+
+<div id="Servers" class="section">
+ <h1 class="title">
+ <span class="title">Remote Servers</span>
+ </h1>
+ <div class="section-content">
+ <table>
+ <tr>
+ <td class="label strong">Name</td>
+ <td class="label strong">Link</td>
+ </tr>
+ #foreach ($Server in $Servers)
+ <tr>
+ <td class="data strong">
+ <a href="#" class="dialog-link">
+ <span class="data-name">$Server.Name</span>
+ </a>
+
+ #if ($Server.AllowForceBuild)
+ <span class="data-force-build-enabled hidden"></span>
+ #else
+ <span class="data-force-build-disabled hidden"></span>
+ #end
+
+ #if ($Server.AllowStartStopBuild)
+ <span class="data-start-enabled hidden"></span>
+ #else
+ <span class="data-start-disabled hidden"></span>
+ #end
+ </td>
+ <td class="data">
+ <a href="#" class="dialog-link">
+ <span class="data-url">$Server.Url</span>
+ </a>
+ </td>
+ </tr>
+ #end
+ <tr>
+ <td colspan="2">
+ <form method="post">
+ <input type="button" id="addServerButton" value="Add New Server" class="dialog-link" />
+ </form>
+ </td>
+ </tr>
+ </table>
+ </div>
+</div>
+<div id="Packages" class="section">
+ <h1 class="title">
+ <span class="title">Packages</span>
+ </h1>
+ <div class="section-content">
+ <table>
+ <tr>
+ <td class="label strong">Name</td>
+ <td class="label strong">Description</td>
+ <td class="label strong">Status</td>
+ </tr>
+ #foreach ($Package in $Packages)
+ <tr>
+ <td class="data strong">
+ <a href="#" class="dialog-link">
+ <span class="data-name">$Package.Name</span>
+ </a>
+ <span class="hidden data-filename">$Package.FileName</span>
+ </td>
+ <td class="data"><span class="data-description">$Package.Description</span></td>
+ <td class="data">
+ #if ($Package.IsInstalled)
+ <span class="data-installed">[Installed]</span>
+ #else
+ <span class="data-not-installed">[Not installed]</span>
+ #end
+ </td>
+ </tr>
+ #end
+ <tr>
+ <td colspan="3">
+ <form method="post">
+ <input type="button" id="loadPackageButton" value="Load Package" class="dialog-link" />
+ </form>
+ </td>
+ </tr>
+ </table>
+ </div>
+</div>
<!-- AdministerDashboard.vm: End -->
View
364 Source/Kaizen/templates/ProjectReport.vm
@@ -1,180 +1,186 @@
-<!-- ProjectReport.vm: Start -->
-<script type="text/javascript">
- $(document).ready(function(){
- $('#parameterCheck').dialog({
- autoOpen:false,
- modal:true,
- title:'Project Parameters',
- width:400,
- height:300,
- overlay:{
- opacity:0.5,
- background:'black'
- }
- });
- });
-</script>
-<div id="parameterCheck">
- <div id="parameterEditor">$translations.Translate("Loading parameters, please wait...")</div>
-</div>
-
-
-#if ($StatusMessage.Length > 0)
-<div class="message success">
- <span>$StatusMessage</span>
-</div>
-#end
-
-<div class="section">
- #if ($status.BuildStatus == "Failure")
- <h1 class="title failed">
- #elseif ($status.BuildStatus == "Success")
- <h1 class="title success">
- #elseif ($status.BuildStatus == "Exception")
- <h1 class="title warning">
- #elseif ($status.BuildStatus == "Unknown")
- <h1 class="title warning">
- #else
- <h1 class="title">
- #end
- <span class="title">$projectName</span>
- #if ($rssDataPresent)
- <span class="title-data">
- <a href="$rss.url" class="button-rss icon icon-rss">
- <span>RSS</span>
- </a>
- </span>
- #end
- </h1>
- #if ($externalLinks.Length > 0)
- <div class="section-content">
- <table>
- #foreach ($externalLink in $externalLinks)
- <tr>
- <td>
- <a class="externalLink" href="$externalLink.Url">$externalLink.Name</a>
- </td>
- </tr>
- #end
- </table>
- </div>
- #end
-</div>
-<div class="section">
- <h1 class="title">
- <span class="title">Status</span>
- </h1>
- <div class="section-content">
- <table>
- <tr>
- <td class="label strong">Last Build Status</td>
- <td class="data strong">$status.BuildStatus</td>
- </tr>
- <tr>
- <td class="label strong">Last Build Label</td>
- <td class="data strong">$status.LastBuildLabel</td>
- </tr>
- <tr>
- <td class="label strong">CCNet Status</td>
- <td class="data strong">$status.Status</td>
- </tr>
- <tr>
- <td class="label strong">Activity</td>
- <td class="data strong">$status.Activity</td>
- </tr>
- <tr>
- <td colspan="2">
- <form methd="POST">
- #if ($server.AllowForceBuild)
- <input type="button" name="$ForceAbortBuildButtonName" value="$ForceAbortBuildButtonValue" onclick="checkForParams(this, '$ParametersUrl')"/>
- #end
- #if ($server.AllowStartStopBuild)
- <input type="submit" name="$StartStopButtonName" value="$StartStopButtonValue"/>
- #end
- </form>
- </td>
- </tr>
- </table>
- </div>
-</div>
-<div class="section">
- <h1 class="title">
- <span class="title">Build</span>
- </h1>
- <div class="section-content">
- <table>
- #if ($noLogsAvailable)
- <tr>
- <td>
- There are currently no build logs available for this project - make sure your Build Server configuration is correct and that this Project's build is not throwing any exceptions
- </td>
- </tr>
- #else
- #if ($pluginInfo)
- <tr>
- <td class="label strong">Most Recent Build Results</td>
- </tr>
- <tr>
- <td class="data">$pluginInfo</td>
- </tr>
- #end
- <tr>
- <td class="data">Click <a href="$mostRecentBuildUrl">here</a> for the full build report.</td>
- </tr>
- #end
- </table>
- </div>
-</div>
-#if ($highestAmountPerDay > 0)
- #set($highestViewPerDay= $highestAmountPerDay / $dateMultiPlier)
- <div class="section">
- <h1 class="title">
- <span class="title">Build Overview</span>
- </h1>
- <div class="section-content">
- <table>
- <tr>
- <td colspan="2" align="center"> $OKPercent% </td>
- </tr>
- <tr height=5>
- <td width="$OKPercent%" class="success"> </td>
- <td width="$NOKPercent%" class="failed"> </td>
- </tr>
- <tr>
- <td colspan="2">
- <table border="0" cellspacing="0" cellpadding="0">
- #foreach ($dayBuildCounter in [1..$highestViewPerDay])
- <tr align="center">
- #foreach ($currentDayInfo in $graphDayInfo)
- #foreach ($multi in [1..$dateMultiPlier])
- #set ($cellIndex = (($highestViewPerDay - $dayBuildCounter) * $dateMultiPlier) + $multi)
- #if ( $cellIndex <= $currentDayInfo.AmountOfBuilds)
- #set ($buildIndex = $cellIndex - 1 )
- #if ($currentDayInfo.Build($buildIndex).IsSuccesFull)
- #set($color = "success")
- #else
- #set($color ="failed")
- #end
- <td class="$color">
- <a href="$currentDayInfo.Build($buildIndex).LinkTobuild" title="$currentDayInfo.Build($buildIndex).Description" class="report-link">$cellIndex</a>
- </td>
- #else
- <td></td>
- #end
- #end
- #end
- </tr>
- #end
- <tr align="center">
- #foreach ($currentDayInfo in $graphDayInfo)
- <td colspan="$dateMultiPlier" class="show-line-breaks">$currentDayInfo.BuildDateFormatted</td>
- #end
- </tr>
- </table>
- </td>
- </tr>
- </table>
- </div>
- </div>
-#end
+<!-- ProjectReport.vm: Start -->
+<script type="text/javascript">
+ $(document).ready(function(){
+ $('#parameterCheck').dialog({
+ autoOpen:false,
+ modal:true,
+ title:'Project Parameters',
+ width:400,
+ height:300,
+ overlay:{
+ opacity:0.5,
+ background:'black'
+ }
+ });
+ });
+</script>
+<div id="parameterCheck">
+ <div id="parameterEditor">$translations.Translate("Loading parameters, please wait...")</div>
+</div>
+
+
+#if ($StatusMessage.Length > 0)
+<div class="message success">
+ <span>$StatusMessage</span>
+</div>
+#end
+
+<div class="section">
+ #if ($status.BuildStatus == "Failure")
+ <h1 class="title failed">
+ #elseif ($status.BuildStatus == "Success")
+ <h1 class="title success">
+ #elseif ($status.BuildStatus == "Exception")
+ <h1 class="title warning">
+ #elseif ($status.BuildStatus == "Unknown")
+ <h1 class="title warning">
+ #else
+ <h1 class="title">
+ #end
+ <span class="title">$projectName</span>
+ #if ($rssDataPresent)
+ <span class="title-data">
+ <a href="$rss.url" class="button-rss icon icon-rss">
+ <span>RSS</span>
+ </a>
+ </span>
+ #end
+ </h1>
+
+ <div class="section-content">
+ <table>
+ #if ($noLogsAvailable)
+ <tr>
+ <td>
+ There are currently no build logs available for this project - make sure your Build Server configuration is correct and that this Project's build is not throwing any exceptions
+ </td>
+ </tr>
+ #else
+ #if ($pluginInfo)
+ <tr>
+ <td class="label strong">Most Recent Build Results</td>
+ </tr>
+ <tr>
+ <td class="data">$pluginInfo</td>
+ </tr>
+ #end
+ <tr>
+ <td class="data">
+ <a class="report" href="$mostRecentBuildUrl">Full build report</a>
+ </td>
+ </tr>
+ #end
+ </table>
+ </div>
+
+
+
+</div>
+<div class="section">
+ <h1 class="title">
+ <span class="title">Status</span>
+ </h1>
+ <div class="section-content">
+ <table>
+ <tr>
+ <td class="label strong">Last Build Status</td>
+ <td class="data strong">$status.BuildStatus</td>
+ </tr>
+ <tr>
+ <td class="label strong">Last Build Label</td>
+ <td class="data strong">$status.LastBuildLabel</td>
+ </tr>
+ <tr>
+ <td class="label strong">CCNet Status</td>
+ <td class="data strong">$status.Status</td>
+ </tr>
+ <tr>
+ <td class="label strong">Activity</td>
+ <td class="data strong">$status.Activity</td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <form methd="POST">
+ #if ($server.AllowForceBuild)
+ <input type="button" name="$ForceAbortBuildButtonName" value="$ForceAbortBuildButtonValue" onclick="checkForParams(this, '$ParametersUrl')"/>
+ #end
+ #if ($server.AllowStartStopBuild)
+ <input type="submit" name="$StartStopButtonName" value="$StartStopButtonValue"/>
+ #end
+ </form>
+ </td>
+ </tr>
+ </table>
+ </div>
+</div>
+<div class="section">
+ <h1 class="title">
+ <span class="title">Related links</span>
+ </h1>
+ <div class="section-content">
+ <table>
+ <tr>
+ <td class="data">
+ #if ($externalLinks.Length > 0)
+ #foreach ($externalLink in $externalLinks)
+ <a class="externalLink" href="$externalLink.Url">$externalLink.Name</a>
+ #end
+ #end
+ </td>
+ </tr>
+ </table>
+ </div>
+</div>
+#if ($highestAmountPerDay > 0)
+ #set($highestViewPerDay= $highestAmountPerDay / $dateMultiPlier)
+ <div class="section">
+ <h1 class="title">
+ <span class="title">Build Overview</span>
+ </h1>
+ <div class="section-content">
+ <table>
+ <tr>
+ <td colspan="2" align="center"> $OKPercent% </td>
+ </tr>
+ <tr height=5>
+ <td width="$OKPercent%" class="success"> </td>
+ <td width="$NOKPercent%" class="failed"> </td>
+ </tr>
+ <tr>
+ <td colspan="2">
+ <table border="0" cellspacing="0" cellpadding="0">
+ #foreach ($dayBuildCounter in [1..$highestViewPerDay])
+ <tr align="center">
+ #foreach ($currentDayInfo in $graphDayInfo)
+ #foreach ($multi in [1..$dateMultiPlier])
+ #set ($cellIndex = (($highestViewPerDay - $dayBuildCounter) * $dateMultiPlier) + $multi)
+ #if ( $cellIndex <= $currentDayInfo.AmountOfBuilds)
+ #set ($buildIndex = $cellIndex - 1 )
+ #if ($currentDayInfo.Build($buildIndex).IsSuccesFull)
+ #set($color = "success")
+ #else
+ #set($color ="failed")
+ #end
+ <td class="$color">
+ <a href="$currentDayInfo.Build($buildIndex).LinkTobuild" title="$currentDayInfo.Build($buildIndex).Description" class="report-link">$cellIndex</a>
+ </td>
+ #else
+ <td></td>
+ #end
+ #end
+ #end
+ </tr>
+ #end
+ <tr align="center">
+ #foreach ($currentDayInfo in $graphDayInfo)
+ <td colspan="$dateMultiPlier" class="show-line-breaks">$currentDayInfo.BuildDateFormatted</td>
+ #end
+ </tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+ </div>
+ </div>
+#end
<!-- ProjectReport.vm: End -->
View
2 Source/Kaizen/templates/SiteTemplate.vm
@@ -32,7 +32,7 @@
<body>
<div id="header">
<div class="header-logo">
- <img src="$applicationPath/Themes/Kaizen/images/ext/logo.gif" /><br/>
+ <img src="$applicationPath/Themes/Kaizen/images/ext/logo.gif" /><br/>
<!--<span class="heading">Continuous Integration</span>
<span class="subheading">Cruise Control.NET</span>-->

0 comments on commit 1d7139a

Please sign in to comment.
Something went wrong with that request. Please try again.