You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

146 lines
6.6 KiB

  1. <nav>
  2. <div class="nav-wrapper blue-grey darken-4">
  3. <a href="#" class="brand-logo">Open Work Time <small>- v0.1</small></a>
  4. <ul id="nav-mobile" class="right">
  5. <li>
  6. <a ng-click="openCode()" target="_blank">
  7. <i class="large material-icons" title="Visit code">code</i>
  8. </a>
  9. </li>
  10. <li>
  11. <a ng-click="deleteStorage()">
  12. <i class="large material-icons" title="Delete storage">info_outline</i>
  13. </a>
  14. </li>
  15. <li>
  16. <a ng-click="onBtnLogout()" title="Logout">
  17. <i class="large material-icons">power_settings_new</i>
  18. </a>
  19. </li>
  20. </ul>
  21. </div>
  22. </nav>
  23. <div class="row">
  24. <div class="col s12 m4 l2 blue-grey darken-3 white-text">
  25. <!-- Grey navigation panel -->
  26. <br>
  27. <div class="row">
  28. <div class="col s4">
  29. <img ng-src="img/avatars/{{user.avatar}}.png" alt="" class="circle responsive-img blue-grey lighten-5">
  30. </div>
  31. <div class="col s8">
  32. <h5>{{user.username}}</h5>
  33. </div>
  34. </div>
  35. <p>
  36. {{user.description}}
  37. </p>
  38. <p>
  39. <a ng-href="http://{{user.github}}" target="_blank">{{user.github}}</a>
  40. </p>
  41. <p>
  42. <a ng-href="http://{{user.web}}" target="_blank">{{user.web}}</a>
  43. </p>
  44. <!--<p>
  45. Total worked time: {{user.totalWorkedTime | secondsToDateTime | date:'HH:mm'}}h
  46. </p>-->
  47. <ul class="collection">
  48. <li ng-repeat="user in users" class="collection-item avatar blue-grey darken-3">
  49. <img ng-src="img/avatars/{{user.avatar}}.png" class="circle">
  50. <span class="title">{{user.username}}</span>
  51. <span ng-show="user.connected" class="new badge" data-badge-caption="online"></span>
  52. <p>{{user.description}}</p>
  53. </li>
  54. </ul>
  55. </div>
  56. <div class="col s12 m8 l10">
  57. <div class="row">
  58. <div class="card white col s12 m12 l5">
  59. <div class="card-content">
  60. <span class="card-title">Projects</span>
  61. <div class="collection">
  62. <a href="#!" ng-click="projectSelect($index)" ng-repeat="project in projects" class="collection-item avatar white">
  63. <div class="right">
  64. <div class="waves-effect waves-light btn-floating indigo lighten-2" ng-click="editProject($index)">
  65. <i class="material-icons"><img src="img/edit.png" class="o_trash_icon" /></i>
  66. </div>
  67. <div class="waves-effect waves-light btn-floating deep-orange lighten-2" ng-click="removeProject($index)">
  68. <i class="material-icons"><img src="img/trash.png" class="o_trash_icon" /></i>
  69. </div>
  70. </div>
  71. <img ng-src="img/{{project.icon}}.png" class="circle"/>
  72. <span class="title">{{project.title}}</span>
  73. <p class="grey-text">{{project.totaltime | secondsToDateTime | date:'HH:mm:ss'}}</p>
  74. </a>
  75. </div>
  76. </div>
  77. <div class="card-action" ng-show="!editingProject">
  78. <div class="input-field col s6">
  79. <input ng-model="newproject.title" id="newprojectname" type="text" class="validate">
  80. <label for="newprojectname">New project name</label>
  81. </div>
  82. <div class="input-field col s6">
  83. <input ng-model="newproject.icon" id="icon" type="text" class="validate">
  84. <label for="icon">icon</label>
  85. </div>
  86. <a ng-click="addNewProject()" class="waves-effect waves-light btn blue-grey lighten-1 right">Add new project</a>
  87. </div>
  88. <div class="card-action" ng-show="editingProject">
  89. <div class="input-field col s6">
  90. <input ng-model="editingProject.title" id="newprojectname" value=" " type="text" class="validate">
  91. <label for="newprojectname">New project name</label>
  92. </div>
  93. <div class="input-field col s6">
  94. <input ng-model="editingProject.icon" id="icon" value=" " type="text" class="validate">
  95. <label for="icon">icon</label>
  96. </div>
  97. <a ng-click="cancelEditProject()" class="waves-effect waves-light btn red lighten-2">Cancel</a>
  98. <a ng-click="updateProject()" class="waves-effect waves-light btn blue lighten-2 right">Update project</a>
  99. </div>
  100. </div>
  101. <div ng-show="currentproject.title" class="card white col s12 m12 l7">
  102. <div class="card-content">
  103. <span class="card-title">
  104. <img ng-src="img/{{currentproject.icon}}.png" class="o_project_title_img"/>
  105. {{currentproject.title}}
  106. </span>
  107. <p>
  108. Total time: {{currentproject.totaltime | secondsToDateTime | date:'HH:mm:ss'}}
  109. </p>
  110. <p>
  111. Current strike time: <b>{{currentStrike | secondsToDateTime | date:'HH:mm:ss'}}</b>
  112. </p>
  113. </div>
  114. <div class="card-action">
  115. <a ng-click="btnWork()" ng-show="!working" class="waves-effect waves-light btn green lighten-2">Work!</a>
  116. <a ng-click="btnStop()" ng-show="working" class="waves-effect waves-light btn red lighten-2">Stop!</a>
  117. <!--<a class="waves-effect waves-light btn deep-orange lighten-2">Stop working!</a>-->
  118. </div>
  119. <div class="divider"></div>
  120. <div class="card-content">
  121. <!-- here the charts -->
  122. <canvas id="bar" class="chart chart-bar"
  123. chart-data="currentproject.chart.data" chart-labels="currentproject.chart.labels" chart-series="currentproject.chart.series">
  124. </canvas>
  125. </div>
  126. </div>
  127. <div ng-show="!currentproject.title" class="card white col s12 m12 l7" style="height: 200px;">
  128. <span class="card-title">
  129. Select a project
  130. </span>
  131. </div>
  132. </div><!-- </row -->
  133. </div>
  134. </div>