-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored for more details - Extracted templates - New layout - Support for named branches (feature/name, hotfix/name...) - New SVG icon
- Loading branch information
Štěpán Škorpil
authored and
Jan Drábek
committed
Apr 24, 2017
1 parent
1cfc4ef
commit 3617ba9
Showing
4 changed files
with
136 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?php | ||
|
||
namespace JanDrabek\Tracy; | ||
|
||
?> | ||
|
||
<style class="tracy-debug"> | ||
|
||
#tracy-debug .nette-ContainerPanel .tracy-inner { | ||
width: 700px; | ||
} | ||
|
||
#tracy-debug .nette-ContainerPanel table { | ||
width: 100%; | ||
white-space: nowrap; | ||
} | ||
|
||
</style> | ||
|
||
<div class="nette-ContainerPanel"> | ||
<h1>Git Version</h1> | ||
|
||
<h2>Actual state</h2> | ||
<table> | ||
<tr> | ||
<th>Revision</th> | ||
<td><?php echo $this->getCurrentCommitHash(); ?></td> | ||
</tr> | ||
</table> | ||
|
||
<h2>Last logs</h2> | ||
<div class="tracy-inner"> | ||
<table> | ||
<tr> | ||
<th>From</th> | ||
<th>To</th> | ||
<th>User & time</th> | ||
<th>Action</th> | ||
</tr> | ||
<?php foreach ($this->getLogTail() as $row) { ?> | ||
<tr> | ||
<td><?php echo $row['from']; ?></td> | ||
<td><?php echo $row['to']; ?></td> | ||
<td><?php echo $row['user']; ?></td> | ||
<td><?php echo $row['action']; ?></td> | ||
</tr> | ||
<?php } ?> | ||
</table> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
namespace JanDrabek\Tracy; | ||
|
||
?> | ||
<span title="Git Version"> | ||
<svg viewBox="0 0 2048 2048"> | ||
<g transform="matrix(4.6701586,0,0,4.6701586,6.6953342e-6,0)"> | ||
<path style="fill:#00c200;fill-opacity:1;stroke:none" d="M 349.459,52.534 C 338.796,41.877 325.854,36.547 310.625,36.547 c -15.222,0 -28.165,5.327 -38.825,15.987 -10.656,10.657 -15.984,23.598 -15.984,38.828 0,9.897 2.467,19.081 7.416,27.55 4.948,8.47 11.604,15.086 19.985,19.842 0,9.897 -0.805,18.608 -2.42,26.125 -1.622,7.517 -4.284,14.128 -7.994,19.842 -3.72,5.711 -7.566,10.561 -11.566,14.56 -4.001,3.999 -9.616,7.755 -16.848,11.278 -7.231,3.521 -13.945,6.468 -20.129,8.851 -6.184,2.375 -14.514,5.182 -24.982,8.419 -19.036,5.903 -33.689,11.323 -43.968,16.275 V 102.206 c 8.375,-4.755 15.037,-11.37 19.985,-19.84 4.947,-8.47 7.421,-17.655 7.421,-27.552 0,-15.225 -5.327,-28.169 -15.987,-38.826 C 156.073,5.332 143.132,0 127.903,0 112.673,0 99.732,5.328 89.072,15.988 78.416,26.645 73.085,39.589 73.085,54.814 c 0,9.897 2.474,19.082 7.421,27.552 4.948,8.47 11.609,15.085 19.985,19.84 v 234.117 c -8.376,4.753 -15.037,11.375 -19.985,19.842 -4.947,8.473 -7.421,17.658 -7.421,27.552 0,15.225 5.327,28.168 15.987,38.824 10.66,10.656 23.604,15.988 38.831,15.988 15.226,0 28.17,-5.332 38.826,-15.988 10.657,-10.656 15.987,-23.6 15.987,-38.824 0,-9.894 -2.474,-19.079 -7.421,-27.552 -4.949,-8.467 -11.61,-15.089 -19.985,-19.842 V 328.9 c 0,-13.131 3.949,-22.645 11.847,-28.544 7.898,-5.907 24.029,-12.662 48.395,-20.273 25.699,-8.186 45.021,-15.899 57.963,-23.134 42.633,-24.167 64.142,-63.568 64.521,-118.196 8.381,-4.755 15.037,-11.372 19.985,-19.842 4.945,-8.47 7.423,-17.653 7.423,-27.55 0.003,-15.226 -5.328,-28.167 -15.985,-38.827 z M 147.321,403.138 c -5.332,5.331 -11.803,7.994 -19.414,7.994 -7.616,0 -14.087,-2.663 -19.417,-7.994 -5.327,-5.325 -7.994,-11.8 -7.994,-19.411 0,-7.617 2.664,-14.085 7.994,-19.417 5.33,-5.328 11.801,-7.994 19.417,-7.994 7.611,0 14.083,2.669 19.414,7.994 5.33,5.332 7.993,11.8 7.993,19.417 -0.001,7.611 -2.663,14.085 -7.993,19.411 z m 0,-328.906 c -5.332,5.33 -11.803,7.994 -19.414,7.994 -7.616,0 -14.087,-2.664 -19.417,-7.994 -5.327,-5.33 -7.994,-11.798 -7.994,-19.414 0,-7.614 2.664,-14.087 7.994,-19.412 5.33,-5.329 11.801,-7.994 19.417,-7.994 7.611,0 14.083,2.666 19.414,7.994 5.33,5.325 7.993,11.798 7.993,19.412 -0.001,7.616 -2.663,14.087 -7.993,19.414 z m 182.721,36.547 c -5.328,5.327 -11.796,7.993 -19.41,7.993 -7.618,0 -14.09,-2.666 -19.414,-7.993 -5.328,-5.327 -7.994,-11.799 -7.994,-19.414 0,-7.614 2.666,-14.083 7.994,-19.414 5.328,-5.331 11.796,-7.993 19.414,-7.993 7.614,0 14.082,2.663 19.41,7.993 5.328,5.326 7.994,11.799 7.994,19.414 0,7.614 -2.662,14.087 -7.994,19.414 z"/> | ||
</g> | ||
</svg> | ||
<span class="tracy-label"><?php echo $this->getCurrentBranchName(); ?></span> | ||
</span> |