overview.html 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581
  1. <div class="container-fluid">
  2. <ul class="nav nav-pills">
  3. <li><a ng-href="#/overview/all/today/errors">Heutige Fehler</a></li>
  4. <li><a ng-href="#/overview/all/today/all">Heutige Statusmeldungen</a></li>
  5. <li><a ng-href="#/overview/all/all/missing">Alle Fehlenden</a></li>
  6. <li><a ng-href="#/overview/all/all/errors">Alle Fehler</a></li>
  7. <li>
  8. <div class="dropdown">
  9. <a class="btn dropdown-toggle" role="button" data-toggle="dropdown">Benutzer: {{benutzer||'bitte auswählen'}}&nbsp;<b class="caret"></b></a>
  10. <ul class="dropdown-menu" role="menu">
  11. <li ng-repeat="val in domain.benutzer"><a ng-click="saveUser(val)">{{val}}</a></li>
  12. </ul>
  13. </div>
  14. </li>
  15. </ul>
  16. </div>
  17. <div class="row">
  18. <div class="container-fluid col-md-12">
  19. <table class="table table-bordered table-striped" style="width: auto;">
  20. <tr>
  21. <th style="width: 130px;">
  22. <label>
  23. Datum <i class="glyphicon glyphicon-sort-by-alphabet" ng-click="Predicate='datum'"></i><br/>
  24. <input ng-model="DatumFilter.von" type="date" ng-change="refresh()" /><br/>
  25. <input ng-model="DatumFilter.bis" type="date" ng-change="refresh()" />
  26. </label>
  27. </th>
  28. <th style="width: 250px;">
  29. <label>
  30. Kunde <i class="glyphicon glyphicon-sort-by-alphabet" ng-click="Predicate='kunde'"></i><br/>
  31. <input ng-model="Filter.kunde" ng-change="refresh()" />
  32. </label>
  33. </th>
  34. <th style="width: 80px;">Awork</th>
  35. <th style="width: 120px;">Info</th>
  36. <th style="width: 120px;">Start Soll<br/>Ende Soll <i class="glyphicon glyphicon-sort-by-alphabet" ng-click="Predicate='ende_soll'"></i></th>
  37. <th style="width: 120px;">Start Ist<br/>Ende Ist</th>
  38. <th style="width: 120px;">Abweichung</th>
  39. <th style="width: 100px;">Fehler / Statistik</th>
  40. <th style="width: 150px;">Kommentar</th>
  41. </tr>
  42. <tr>
  43. <td></td>
  44. <td></td>
  45. <td></td>
  46. <td>
  47. <div class="dropdown">
  48. <a class="btn dropdown-toggle" role="button" data-toggle="dropdown">{{Filter.system||'alle'}}&nbsp;<b class="caret"></b></a>
  49. <ul class="dropdown-menu" role="menu">
  50. <li><a ng-click="Filter.system=''">alle</a></li>
  51. <li class="divider"></li>
  52. <li ng-repeat="val in domain.system"><a ng-click="Filter.system=val">{{val}}</a></li>
  53. </ul>
  54. </div>
  55. </td>
  56. <td></td>
  57. <td>
  58. <div class="dropdown">
  59. <a class="btn dropdown-toggle" role="button" data-toggle="dropdown">{{domain.fehlend[Filter.fehlend]||'alle'}}&nbsp;<b class="caret"></b></a>
  60. <ul class="dropdown-menu" role="menu">
  61. <li><a ng-click="Filter.fehlend=''">alle</a></li>
  62. <li class="divider"></li>
  63. <li ng-repeat="(key,val) in domain.fehlend"><a ng-click="Filter.fehlend=key">{{val}}</a></li>
  64. </ul>
  65. </div>
  66. </td>
  67. <td></td>
  68. <td>
  69. <div class="dropdown">
  70. <a class="btn dropdown-toggle" role="button" data-toggle="dropdown">{{domain.fehler[Filter.fehler]||'alle'}}&nbsp;<b class="caret"></b></a>
  71. <ul class="dropdown-menu" role="menu">
  72. <li><a ng-click="Filter.fehler=''">alle</a></li>
  73. <li class="divider"></li>
  74. <li ng-repeat="(key,val) in domain.fehler"><a ng-click="Filter.fehler=key">{{val}}</a></li>
  75. </ul>
  76. </div>
  77. </td>
  78. <td>
  79. <div class="dropdown">
  80. <a class="btn dropdown-toggle" role="button" data-toggle="dropdown">{{Filter.benutzer||'alle'}}&nbsp;<b class="caret"></b></a>
  81. <ul class="dropdown-menu" role="menu">
  82. <li><a ng-click="Filter.benutzer=''">alle</a></li>
  83. <li class="divider"></li>
  84. <li ng-repeat="val in domain.benutzer"><a ng-click="Filter.benutzer=val">{{val}}</a></li>
  85. </ul>
  86. </div>
  87. </td>
  88. </tr>
  89. <tr ng-repeat="zeile in overview | filter:DatumFilter.datum | filter:Filter | orderBy:Predicate:Reverse" ng-class="{'danger':zeile.fehlend==1}">
  90. <td>{{dateFormat(zeile.datum)}}</td>
  91. <td><a ng-href="#/overview/{{zeile.kunde}}/all/all">{{zeile.kunde}}</a> {{zeile.aufgabe}}</td>
  92. <td>
  93. <div ng-show="zeile.awork_company_id">
  94. <a target="_blank" ng-href="https://mintcream-awesome-ninjas.awork.com/companies/{{zeile.awork_company_id}}/projects/list">
  95. <button type="button" class="btn btn-default btn-sm" title="Awork">
  96. <img src="/images/awork-01.svg" style="width: 14px;">
  97. </button>
  98. </a></td>
  99. </div>
  100. <td>
  101. <span class="label label-danger label-{{zeile.system}}">{{zeile.system}}</span>
  102. </td>
  103. <td>{{zeile.start_soll}}<br/>{{zeile.ende_soll}}</td>
  104. <td>
  105. <a ng-click="saveStartTime(zeile)">{{zeile.start}}</a><br/>
  106. <a ng-click="saveEndTime(zeile)">{{zeile.ende}}</a>
  107. </td>
  108. <td>
  109. {{timeDiffStart(zeile)}}<br/>
  110. {{timeDiff(zeile)}}</td>
  111. <td>
  112. <!--<a ng-href="#/overview/{{zeile.kunde}}/all/all"><button type="button" class="btn btn-default" title="Fehlermeldungen"><span class="glyphicon glyphicon-exclamation-sign"></span></button></a>-->
  113. <!--<a ng-href="#/stats/{{zeile.kunde}}"><button type="button" class="btn btn-default" title="Statistik"><span class="glyphicon glyphicon-stats"></span></button></a>-->
  114. <!--<a ng-href="#/config/{{zeile.kunde}}/current"><button type="button" class="btn btn-default" title="Konfiguration"><span class="glyphicon glyphicon-list-alt"></span></button></a>-->
  115. <button type="button" class="btn btn-default btn-sm" data-toggle="modal" data-target="#fehler-modal" ng-click="setCurrent(zeile)" ng-show="zeile.anzahl != null">
  116. <span class="glyphicon" ng-class="{'glyphicon-check': zeile.anzahl == 0 && zeile.bearbeitet == 1, 'glyphicon-eye-close': zeile.anzahl == 0 && zeile.bearbeitet == 0, 'glyphicon-exclamation-sign': zeile.anzahl > 0 && zeile.bearbeitet == 0, 'glyphicon-ok': zeile.anzahl > 0 && zeile.bearbeitet == 1}"></span>
  117. <span class="label label-danger label-{{zeile.anzahl}}"> {{zeile.anzahl}}</span>
  118. </button>
  119. <button type="button" data-trigger="focus" class="btn btn-default btn-sm" data-toggle="modal" data-target="#fehler-modal" ng-click="setCurrent(zeile)" ng-show="zeile.anzahl == null">
  120. <span class="glyphicon" ng-class="{'glyphicon-check': zeile.bearbeitet == 1, 'glyphicon-question-sign': zeile.bearbeitet != 1 }"></span>
  121. </button>
  122. </td>
  123. <td>
  124. <button type="button" class="btn btn-default btn-sm" ng-init="c = getComments(zeile)" ng-show="c" data-toggle="popover" data-placement="bottom"
  125. title="" data-content="" data-popover="{{c[0].id}}" data-kunde="{{c[0].kunde}}" data-datum="{{c[0].datum}}">
  126. <span ng-show="c[0].datum != zeile.datum">{{dateFormat(c[0].datum)}}: </span>
  127. <span class="glyphicon {{getCommentIcon(c[0].status)}}"></span>
  128. <span class="label label-danger label-{{c[0].fehler}}"> {{c[0].fehler}}</span>
  129. {{c[0].benutzer}}
  130. </button>
  131. <span ng-show="zeile.awork_task_id != ''">
  132. <a target="_blank" ng-href="https://mintcream-awesome-ninjas.awork.com/tasks/{{zeile.awork_task_id}}">
  133. <button type="button" class="btn btn-default btn-sm" title="Awork">
  134. <img src="/images/awork-01.svg" style="width: 14px;">
  135. </button>
  136. </a>
  137. </span>
  138. </td>
  139. </tr>
  140. </table>
  141. </div>
  142. </div>
  143. <!-- Modal -->
  144. <div class="modal fade" id="fehler-modal" tabindex="-1" role="dialog" aria-labelledby="fehler-modal-label" aria-hidden="true">
  145. <div class="modal-dialog modal-lg">
  146. <div class="modal-content">
  147. <div class="modal-header">
  148. <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
  149. <h4 class="modal-title" id="fehler-modal-label"><span class="glyphicon glyphicon-exclamation-sign"></span>&nbsp; {{current.zeile.kunde}} - {{dateFormat(current.zeile.datum)}}</h4>
  150. </div>
  151. <div class="modal-body">
  152. <h3>Kommentar</h3>
  153. <table class="table table-hover table-bordered">
  154. <tr>
  155. <th>Benutzer</th>
  156. <td>
  157. <div class="dropdown">
  158. <a class="btn dropdown-toggle" role="button" data-toggle="dropdown">{{current.kommentar.benutzer||'unbekannt'}}&nbsp;<b class="caret"></b></a>
  159. <ul class="dropdown-menu" role="menu">
  160. <li ng-repeat="val in domain.benutzer"><a ng-click="current.kommentar.benutzer=val">{{val}}</a></li>
  161. </ul>
  162. </div>
  163. </td>
  164. </tr>
  165. <tr>
  166. <th>Bearbeitungsstand</th>
  167. <td>
  168. <div class="dropdown">
  169. <a class="btn dropdown-toggle" role="button" data-toggle="dropdown"><span class="glyphicon {{getCommentIcon(current.kommentar)}}"></span> {{domain.bearbeitet[current.kommentar.status]||'unbekannt'}}&nbsp;<b class="caret"></b></a>
  170. <ul class="dropdown-menu" role="menu">
  171. <li ng-repeat="(key,val) in domain.bearbeitet"><a ng-click="current.kommentar.status=key"><span class="glyphicon {{domain.comment[key]}}"></span> {{val}}</a></li>
  172. </ul>
  173. </div>
  174. </td>
  175. </tr>
  176. <tr>
  177. <th>Awork-Aufgabe erstellen</th>
  178. <td>
  179. <div class="dropdown">
  180. <a class="btn dropdown-toggle" role="button" data-toggle="dropdown">{{getProject(current.kommentar.awork_project_id)}}&nbsp;<b class="caret"></b></a>
  181. <ul class="dropdown-menu" role="menu">
  182. <li><a ng-click="current.kommentar.awork_project_id=''">-- keine Aktion --</a></li>
  183. <li ng-repeat="val in current.awork_projekte"><a ng-click="current.kommentar.awork_project_id=val.awork_project_id">{{val.projekt_name}}</a></li>
  184. </ul>
  185. </div>
  186. </td>
  187. </tr>
  188. <tr ng-show="current.kommentar.awork_project_id!=''">
  189. <th>Awork-Aufgabe zuweisen</th>
  190. <td>
  191. <div class="dropdown">
  192. <a class="btn dropdown-toggle" role="button" data-toggle="dropdown">{{current.kommentar.benutzer2||'mir selbst'}}&nbsp;<b class="caret"></b></a>
  193. <ul class="dropdown-menu" role="menu">
  194. <li ng-repeat="val in domain.benutzer"><a ng-click="current.kommentar.benutzer2=val">{{val}}</a></li>
  195. </ul>
  196. </div>
  197. </td>
  198. <tr>
  199. <th>Anzahl Fehler
  200. <span class="label label-danger label-{{current.fehler.anzahl}}"> {{current.fehler.anzahl}}</span>
  201. </th>
  202. <td>
  203. <span class="label label-danger label-{{current.kommentar.fehler}}"> {{current.kommentar.fehler}}</span> &nbsp;
  204. <label>
  205. <input type="range" name="Anzahl" min="0" max="10" ng-model="current.kommentar.fehler" />
  206. </label>
  207. </td>
  208. </tr>
  209. <tr>
  210. <th>Kommentar</th>
  211. <td>
  212. <label>
  213. <textarea cols="60" rows="5" ng-model="current.kommentar.kommentar"></textarea>
  214. </label>
  215. </td>
  216. </tr>
  217. <tr>
  218. <td></td>
  219. <td>
  220. <button type="button" class="btn btn-default" ng-click="saveComments()">Speichern</button>
  221. <button type="button" class="btn btn-primary" ng-click="saveComments()" data-dismiss="modal">Speichern und schließen</button>
  222. </td>
  223. </tr>
  224. </table>
  225. <h3>Fehler</h3>
  226. <div class="logdatei" ng-repeat="e in current.fehler.fehlerbericht | filter: errorLevel | orderBy: 'ErrorLevel'">
  227. <a href="" onclick="$(this).next().toggle()" ng-click="e.Errors3 = e.Errors">
  228. <p class="modell" ng-class="{'rot':e.ErrorLevel < 3}">{{e.Type}}: {{e.Name}} ({{errorCount(e)}})</p>
  229. </a>
  230. <div class="closed-tab">
  231. <ul class="fehler" ng-show="e.Type=='Modell'">
  232. <li ng-repeat="error in e.Errors3"><a href="http://rbs06/wiki/{{error.Number}}" target="_blank">{{error.Number}}</a>:
  233. ({{error.Level}}) {{error.Message}}</li>
  234. </ul>
  235. <pre class="fehler" ng-show="e.Type=='Workflow'" ng-bind-html="e.Errors3[0]"></pre>
  236. <table class="ft" ng-show="e.Type=='Portal'||e.Type=='Versand'">
  237. <tbody ng-repeat="error in e.Errors3">
  238. <tr>
  239. <td rowspan="6" class="number">{{$index+1}}
  240. <td>Datei:</td>
  241. <td></td>
  242. <td>{{error.Filename}}</td>
  243. </tr>
  244. <tr>
  245. <td>Stand:</td>
  246. <td></td>
  247. <td>{{error.Modified}}</td>
  248. </tr>
  249. <tr>
  250. <td>Benutzer:</td>
  251. <td><button class="btn btn-default btn-sm" ng-show="!inWhitelist('User', error.User)" ng-click="whitelistToggle('User', error.User)"><span class="glyphicon glyphicon-ban-circle"></span></button></td>
  252. <td>{{error.User}}</td>
  253. </tr>
  254. <tr>
  255. <td>Bericht:</td>
  256. <td><button class="btn btn-default btn-sm" ng-show="!inWhitelist('Report', error.Report)" ng-click="whitelistToggle('Report', error.Report)"><span class="glyphicon glyphicon-ban-circle"></span></button></td>
  257. <td>{{error.Report}}</td>
  258. </tr>
  259. <tr>
  260. <td>Schicht:</td>
  261. <td><button class="btn btn-default btn-sm" ng-show="!inWhitelist('Layer', error.Layer)" ng-click="whitelistToggle('Layer', error.Layer)"><span class="glyphicon glyphicon-ban-circle"></span></button></td>
  262. <td>{{error.Layer}}</td>
  263. </tr>
  264. <tr class="strich">
  265. <td><div ng-show="e.Type=='Versand'">Empfänger:</div></td>
  266. <td></td>
  267. <td><div ng-bind-html="mailFormat(error.MailTo)"></div></td>
  268. </tr>
  269. </tbody>
  270. <tr ng-show="e.Errors2">
  271. <td colspan="4"><a ng-click="e.Show=!e.Show;">Ausgeblendete Berichte</a></td>
  272. </tr>
  273. <tbody ng-repeat="error in e.Errors2" ng-show="e.Show">
  274. <tr>
  275. <td rowspan="6" class="number">{{$index+1}}
  276. <td>Datei:</td>
  277. <td></td>
  278. <td>{{error.Filename}}</td>
  279. </tr>
  280. <tr>
  281. <td>Stand:</td>
  282. <td></td>
  283. <td>{{error.Modified}}</td>
  284. </tr>
  285. <tr>
  286. <td>Benutzer:</td>
  287. <td><button class="btn btn-default btn-sm" ng-show="!inWhitelist('User', error.User)" ng-click="whitelistToggle('User', error.User)"><span class="glyphicon glyphicon-ban-circle"></span></button></td>
  288. <td>{{error.User}}</td>
  289. </tr>
  290. <tr>
  291. <td>Bericht:</td>
  292. <td><button class="btn btn-default btn-sm" ng-show="!inWhitelist('Report', error.Report)" ng-click="whitelistToggle('Report', error.Report)"><span class="glyphicon glyphicon-ban-circle"></span></button></td>
  293. <td>{{error.Report}}</td>
  294. </tr>
  295. <tr>
  296. <td>Schicht:</td>
  297. <td><button class="btn btn-default btn-sm" ng-show="!inWhitelist('Layer', error.Layer)" ng-click="whitelistToggle('Layer', error.Layer)"><span class="glyphicon glyphicon-ban-circle"></span></button></td>
  298. <td>{{error.Layer}}</td>
  299. </tr>
  300. <tr class="strich">
  301. <td><div ng-show="e.Type=='Versand'">Empfänger:</div></td>
  302. <td></td>
  303. <td><div ng-bind-html="mailFormat(error.MailTo)"></div></td>
  304. </tr>
  305. </tbody>
  306. </table>
  307. </div>
  308. </div>
  309. <h3>Weitere Logdateien</h3>
  310. <table class="table table-hover table-bordered">
  311. <tr ng-repeat="(header, g) in current.fehler.weitere">
  312. <th>{{header}}</th>
  313. <td>
  314. <ul>
  315. <li ng-repeat="e in g" >
  316. <a ng-click="current.fehlerdetails = e" ng-show="header != 'Modell'">{{e.Name}}</a>
  317. <span ng-show="header == 'Modell'">{{e.Name}}</span>
  318. </li>
  319. </ul>
  320. </td>
  321. </tr>
  322. </table>
  323. <div class="logdatei" ng-show="current.fehlerdetails != null">
  324. <p class="modell">{{current.fehlerdetails.Type}}: {{current.fehlerdetails.Name}} ({{errorCount(current.fehlerdetails)}})</p>
  325. <pre class="fehler" ng-repeat="error in current.fehlerdetails.Errors">{{error}}</pre>
  326. <table class="ft" ng-show="current.fehlerdetails.Errors2">
  327. <tbody ng-repeat="error in current.fehlerdetails.Errors2">
  328. <tr>
  329. <td rowspan="6" class="number">{{$index+1}}
  330. <td>Datei:</td>
  331. <td></td>
  332. <td>{{error.Filename}}</td>
  333. </tr>
  334. <tr>
  335. <td>Stand:</td>
  336. <td></td>
  337. <td>{{error.Modified}}</td>
  338. </tr>
  339. <tr>
  340. <td>Benutzer:</td>
  341. <td><button class="btn btn-default btn-sm" ng-show="!inWhitelist('User', error.User)" ng-click="whitelistToggle('User', error.User)"><span class="glyphicon glyphicon-ban-circle"></span></button></td>
  342. <td>{{error.User}}</td>
  343. </tr>
  344. <tr>
  345. <td>Bericht:</td>
  346. <td><button class="btn btn-default btn-sm" ng-show="!inWhitelist('Report', error.Report)" ng-click="whitelistToggle('Report', error.Report)"><span class="glyphicon glyphicon-ban-circle"></span></button></td>
  347. <td>{{error.Report}}</td>
  348. </tr>
  349. <tr>
  350. <td>Schicht:</td>
  351. <td><button class="btn btn-default btn-sm" ng-show="!inWhitelist('Layer', error.Layer)" ng-click="whitelistToggle('Layer', error.Layer)"><span class="glyphicon glyphicon-ban-circle"></span></button></td>
  352. <td>{{error.Layer}}</td>
  353. </tr>
  354. <tr class="strich">
  355. <td><div ng-show="e.Type=='Versand'">Empfänger:</div></td>
  356. <td></td>
  357. <td><div ng-bind-html="mailFormat(error.MailTo)"></div></td>
  358. </tr>
  359. </tbody>
  360. </table>
  361. </div>
  362. <div ng-show="current.fehler.whitelist.User || current.fehler.whitelist.Report || current.fehler.whitelist.Layer">
  363. <h3>Ausgeblendete Berichte</h3>
  364. <table class="table table-hover table-bordered">
  365. <tr ng-show="current.fehler.whitelist.User">
  366. <th>Benutzer</th>
  367. <td>
  368. <ul>
  369. <li ng-repeat="val in current.fehler.whitelist.User"><a ng-click="whitelistToggle('User', val)">{{val}}</a></li>
  370. </ul>
  371. </td>
  372. </tr>
  373. <tr ng-show="current.fehler.whitelist.Report">
  374. <th>Bericht</th>
  375. <td>
  376. <ul>
  377. <li ng-repeat="val in current.fehler.whitelist.Report"><button ng-click="whitelistToggle('Report', val)"><span class="glyphicon glyphicon-trash"></span></button> {{val}}</li>
  378. </ul>
  379. </td>
  380. </tr>
  381. <tr ng-show="current.fehler.whitelist.Layer">
  382. <th>Schicht</th>
  383. <td>
  384. <ul>
  385. <li ng-repeat="val in current.fehler.whitelist.Layer"><a ng-click="whitelistToggle('Layer', val)">{{val}}</a></li>
  386. </ul>
  387. </td>
  388. </tr>
  389. </table>
  390. </div>
  391. <h3>Historie</h3>
  392. <table class="table table-hover table-bordered table-condensed">
  393. <tr>
  394. <th style="width: 140px;">Datum</th>
  395. <th style="width: 100px;">Start<br/>Ende</th>
  396. <th style="width: 110px;">Abweichung</th>
  397. <th style="width: 120px;">Fehler</th>
  398. <th style="width: 340px;">Kommentar</th>
  399. </tr>
  400. <tr ng-repeat="z in current.overview | orderBy: 'datum':true | limitTo: current.limit " ng-class="{'danger':z.fehlend==1}">
  401. <td>{{dateFormat(z.datum)}}</td>
  402. <td>
  403. <a ng-click="saveStartTime(z)">{{z.start}}</a><br/>
  404. <a ng-click="saveEndTime(z)">{{z.ende}}</a>
  405. </td>
  406. <td>
  407. {{timeDiffStart(z)}}<br/>
  408. {{timeDiff(z)}}
  409. </td>
  410. <td>
  411. <button type="button" class="btn btn-default btn-sm" ng-click="setCurrent(z)" ng-show="z.anzahl != null">
  412. <span class="glyphicon" ng-class="{'glyphicon-check': z.anzahl == 0 && z.bearbeitet == 1, 'glyphicon-eye-close': z.anzahl == 0 && z.bearbeitet == 0, 'glyphicon-exclamation-sign': z.anzahl > 0 && z.bearbeitet == 0, 'glyphicon-ok': z.anzahl > 0 && z.bearbeitet == 1}"></span>
  413. <span class="label label-danger label-{{z.anzahl}}"> {{z.anzahl}}</span>
  414. </button>
  415. <button type="button" data-trigger="focus" class="btn btn-default btn-sm" ng-click="setCurrent(zeile)" ng-show="z.anzahl == null">
  416. <span class="glyphicon glyphicon-question-sign"></span>
  417. </button>
  418. </td>
  419. <td>
  420. <button type="button" class="btn btn-default btn-sm" ng-init="c = getComments(z, '1')" ng-show="c" data-toggle="popover" data-placement="bottom"
  421. title="" data-content="" data-popover="{{c.id}}">
  422. <span ng-show="c[0].datum != z.datum">{{dateFormat(c[0].datum)}}: </span>
  423. <span class="glyphicon {{getCommentIcon(c)}}"></span>
  424. <span class="label label-danger label-{{c[0].fehler}}"> {{c[0].fehler}}</span>
  425. {{c[0].benutzer}}
  426. </button>
  427. </td>
  428. </tr>
  429. <tr>
  430. <td>
  431. <button class="btn btn-default" ng-click="current.limit=100"><span class="glyphicon glyphicon-plus"></span></button>
  432. </td>
  433. </tr>
  434. </table>
  435. <h3>Statistik</h3>
  436. <div>
  437. <div id="durationChart" style="width: 750px; height: 550px"></div>
  438. </div>
  439. <br/><br/>
  440. <table class="table table-bordered table-striped">
  441. <tr>
  442. <th>Name</th>
  443. <th>Datum</th>
  444. <th>Zeit</th>
  445. <th>Dauer</th>
  446. <th>Quellen</th>
  447. <th>Kategorien</th>
  448. <th>Datensätze</th>
  449. </tr>
  450. <tr ng-repeat="e in current.fehler.fehlerbericht" ng-show="e.Summary.Duration != null">
  451. <td>{{e.Type}}: <a href="" ng-click="showDetails(e)">{{e.Name}}</a></td>
  452. <td>{{dateFormat(e.Modified)}}</td>
  453. <td>{{timeFormat(e.Modified)}}</td>
  454. <td>{{e.Summary.Duration}}</td>
  455. <td>{{e.Sources.length}}</td>
  456. <td>{{e.Summary.Categories}}</td>
  457. <td>{{e.Summary.Entities}}</td>
  458. </tr>
  459. </table>
  460. <div ng-show="current.details!=null">
  461. <h3>Details zu {{current.details.Type}}: {{current.details.Name}}</h3>
  462. <div id="durationDetailsChart" style="width: 750px; height: 550px">
  463. </div>
  464. <br/><br/>
  465. <table class="table table-bordered table-striped">
  466. <tr>
  467. <th>Name</th>
  468. <th ng-show="current.details.Type!='Modell'">Report</th>
  469. <th ng-show="current.details.Type=='Modell'">Datensätze</th>
  470. <th>Dauer</th>
  471. </tr>
  472. <tr ng-repeat="e in current.details.Sources">
  473. <td>{{e.Filename}}</td>
  474. <td ng-show="current.details.Type!='Modell'">{{e.Report}} ({{e.Layer}})</td>
  475. <td ng-show="current.details.Type=='Modell'">{{e.Entities}}</td>
  476. <td>{{e.Duration}}</td>
  477. </tr>
  478. </table>
  479. </div>
  480. </div>
  481. </div>
  482. </div>
  483. </div>
  484. </div>
  485. <style>
  486. .table tbody tr td {
  487. vertical-align: middle;
  488. }
  489. .label-0 {
  490. background-color: #aaaaaa;
  491. }
  492. .label-1 {
  493. background-color: #bbbb00;
  494. }
  495. .label-2 {
  496. background-color: #bb8800;
  497. }
  498. .label-3 {
  499. background-color: #bb0000;
  500. }
  501. table.ft {
  502. border: 1px solid #888;
  503. }
  504. table.ft td {
  505. padding: 3px 5px;
  506. margin: 2px;
  507. background-color: #ddd;
  508. }
  509. .logdatei {
  510. margin: 10px 5px 20px 5px;
  511. padding: 0 20px 10px 20px;
  512. background-color: #eee;
  513. border: 1px solid #888;
  514. }
  515. .modell {
  516. font-weight: bold;
  517. background-color: #ccc;
  518. padding: 10px;
  519. margin: 0 -20px;
  520. }
  521. .rot {
  522. background-color: #e88;
  523. }
  524. .number {
  525. font-weight: bold;
  526. background-color: #ccc;
  527. border: 1px solid #888888;
  528. }
  529. .strich {
  530. border-bottom: 1px solid #888888;
  531. }
  532. </style>