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.

151 lines
7.0 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.description}}</p>
  74. <p class="grey-text">{{project.totaltime | secondsToDateTime | date:'HH:mm:ss'}}</p>
  75. </a>
  76. </div>
  77. </div>
  78. <div class="card-action" ng-show="!editingProject">
  79. <div class="input-field col s6">
  80. <input ng-model="newproject.title" id="newprojectname" type="text" class="validate">
  81. <label for="newprojectname">New project name</label>
  82. </div>
  83. <div class="input-field col s6">
  84. <input ng-model="newproject.icon" id="icon" type="text" class="validate">
  85. <label for="icon">icon</label>
  86. </div>
  87. <div class="input-field col s12">
  88. <input ng-model="newproject.description" id="description" type="text" class="validate">
  89. <label for="description">description</label>
  90. </div>
  91. <a ng-click="addNewProject()" class="waves-effect waves-light btn blue-grey lighten-1 right">Add new project</a>
  92. </div>
  93. <div class="card-action" ng-show="editingProject">
  94. <div class="input-field col s6">
  95. <input ng-model="editingProject.title" id="newprojectname" value=" " type="text" class="validate">
  96. <label for="newprojectname">New project name</label>
  97. </div>
  98. <div class="input-field col s6">
  99. <input ng-model="editingProject.icon" id="icon" value=" " type="text" class="validate">
  100. <label for="icon">icon</label>
  101. </div>
  102. <a ng-click="cancelEditProject()" class="waves-effect waves-light btn red lighten-2">Cancel</a>
  103. <a ng-click="updateProject()" class="waves-effect waves-light btn blue lighten-2 right">Update project</a>
  104. </div>
  105. </div>
  106. <div ng-show="currentproject.title" class="card white col s12 m12 l7">
  107. <div class="card-content">
  108. <span class="card-title">
  109. <img ng-src="img/{{currentproject.icon}}.png" class="o_project_title_img"/>
  110. {{currentproject.title}}
  111. </span>
  112. <p>
  113. Total time: {{currentproject.totaltime | secondsToDateTime | date:'HH:mm:ss'}}
  114. </p>
  115. <p>
  116. Current strike time: <b>{{currentStrike | secondsToDateTime | date:'HH:mm:ss'}}</b>
  117. </p>
  118. </div>
  119. <div class="card-action">
  120. <a ng-click="btnWork()" ng-show="!working" class="waves-effect waves-light btn green lighten-2">Work!</a>
  121. <a ng-click="btnStop()" ng-show="working" class="waves-effect waves-light btn red lighten-2">Stop!</a>
  122. <!--<a class="waves-effect waves-light btn deep-orange lighten-2">Stop working!</a>-->
  123. </div>
  124. <div class="divider"></div>
  125. <div class="card-content">
  126. <!-- here the charts -->
  127. <canvas id="bar" class="chart chart-bar"
  128. chart-data="currentproject.chart.data" chart-labels="currentproject.chart.labels" chart-series="currentproject.chart.series">
  129. </canvas>
  130. </div>
  131. </div>
  132. <div ng-show="!currentproject.title" class="card white col s12 m12 l7" style="height: 200px;">
  133. <span class="card-title">
  134. Select a project
  135. </span>
  136. </div>
  137. </div><!-- </row -->
  138. </div>
  139. </div>