overview.htm 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. <style>
  2. /*!
  3. Pure v1.0.1
  4. Copyright 2013 Yahoo!
  5. Licensed under the BSD License.
  6. https://github.com/pure-css/pure/blob/master/LICENSE.md
  7. */
  8. .pure-g {
  9. letter-spacing: -.31em;
  10. text-rendering: optimizespeed;
  11. font-family: FreeSans, Arimo, "Droid Sans", Helvetica, Arial, sans-serif;
  12. display: -webkit-box;
  13. display: -webkit-flex;
  14. display: -ms-flexbox;
  15. display: flex;
  16. -webkit-box-orient: horizontal;
  17. -webkit-box-direction: normal;
  18. -webkit-flex-flow: row wrap;
  19. -ms-flex-flow: row wrap;
  20. flex-flow: row wrap;
  21. -webkit-align-content: flex-start;
  22. -ms-flex-line-pack: start;
  23. align-content: flex-start
  24. }
  25. .pure-u {
  26. display: inline-block;
  27. zoom: 1;
  28. letter-spacing: normal;
  29. word-spacing: normal;
  30. vertical-align: top;
  31. text-rendering: auto
  32. }
  33. .pure-g [class*=pure-u] {
  34. font-family: sans-serif
  35. }
  36. .pure-u-1-4,
  37. .pure-u-2-5,
  38. .pure-u-3-5 {
  39. display: inline-block;
  40. zoom: 1;
  41. letter-spacing: normal;
  42. word-spacing: normal;
  43. vertical-align: top;
  44. text-rendering: auto
  45. }
  46. .pure-u-1-4 {
  47. width: 25%
  48. }
  49. .pure-u-2-5 {
  50. width: 40%
  51. }
  52. .pure-u-3-5 {
  53. width: 60%
  54. }
  55. .status {
  56. margin: 1rem -0.5rem 1rem -0.5rem;
  57. }
  58. .block {
  59. margin: 0.5rem 0.5rem;
  60. padding: 0;
  61. font-weight: normal;
  62. font-style: normal;
  63. line-height: 1;
  64. font-family: inherit;
  65. min-width: inherit;
  66. overflow-x: auto;
  67. overflow-y: hidden;
  68. border: 1px solid rgba(0, 0, 0, .05);
  69. border-radius: .375rem;
  70. box-shadow: 0 0 2rem 0 rgba(136, 152, 170, .15);
  71. }
  72. .img-con {
  73. margin: 1rem;
  74. min-width: 4rem;
  75. max-width: 4rem;
  76. min-height: 4rem;
  77. max-height: 4rem;
  78. }
  79. .block h4 {
  80. font-size: .8125rem;
  81. font-weight: 600;
  82. margin: 1rem;
  83. color: #8898aa !important;
  84. line-height: 1.8em;
  85. }
  86. .cbi-section-table-cell {
  87. position: relative;
  88. }
  89. @media screen and (max-width: 700px) {
  90. .pure-u-1-4 {
  91. width: 50%;
  92. }
  93. .cbi-button-add {
  94. position: fixed;
  95. padding: 0.3rem 0.5rem;
  96. z-index: 1000;
  97. width: 50px !important;
  98. height: 50px;
  99. bottom: 90px;
  100. right: 5px;
  101. font-size: 16px;
  102. border-radius: 50%;
  103. display: block;
  104. background-color: #fb6340 !important;
  105. border-color: #fb6340 !important;
  106. box-shadow: 0 0 1rem 0 rgba(136, 152, 170, .75);
  107. }
  108. }
  109. </style>
  110. <div class="pure-g status">
  111. <div class="pure-u-1-4">
  112. <div class="block pure-g">
  113. <div class="pure-u-2-5">
  114. <div class="img-con">
  115. <img src="<%=resource%>/dockerman/containers.svg" />
  116. </div>
  117. </div>
  118. <div class="pure-u-3-5">
  119. <h4 style="text-align: right; font-size: 1rem"><%:Containers%></h4>
  120. <h4 style="text-align: right;">
  121. <%- if self.containers_total ~= "-" then -%><a href='<%=luci.dispatcher.build_url("admin/docker/containers")%>'><%- end -%>
  122. <span style="font-size: 2rem; color: #2dce89;"><%=self.containers_running%></span>
  123. <span style="font-size: 1rem; color: #8898aa !important;">/<%=self.containers_total%></span>
  124. <%- if self.containers_total ~= "-" then -%></a><%- end -%>
  125. </h4>
  126. </div>
  127. </div>
  128. </div>
  129. <div class="pure-u-1-4">
  130. <div class="block pure-g">
  131. <div class="pure-u-2-5">
  132. <div class="img-con">
  133. <img src="<%=resource%>/dockerman/images.svg" />
  134. </div>
  135. </div>
  136. <div class="pure-u-3-5">
  137. <h4 style="text-align: right; font-size: 1rem"><%:Images%></h4>
  138. <h4 style="text-align: right;">
  139. <%- if self.images_total ~= "-" then -%><a href='<%=luci.dispatcher.build_url("admin/docker/images")%>'><%- end -%>
  140. <span style="font-size: 2rem; color: #2dce89;"><%=self.images_used%></span>
  141. <span style="font-size: 1rem; color: #8898aa !important;">/<%=self.images_total%></span>
  142. <%- if self.images_total ~= "-" then -%></a><%- end -%>
  143. </h4>
  144. </div>
  145. </div>
  146. </div>
  147. <div class="pure-u-1-4">
  148. <div class="block pure-g">
  149. <div class="pure-u-2-5">
  150. <div class="img-con">
  151. <img src="<%=resource%>/dockerman/networks.svg" />
  152. </div>
  153. </div>
  154. <div class="pure-u-3-5">
  155. <h4 style="text-align: right; font-size: 1rem"><%:Networks%></h4>
  156. <h4 style="text-align: right;">
  157. <%- if self.networks_total ~= "-" then -%><a href='<%=luci.dispatcher.build_url("admin/docker/networks")%>'><%- end -%>
  158. <span style="font-size: 2rem; color: #2dce89;"><%=self.networks_total%></span>
  159. <!-- <span style="font-size: 1rem; color: #8898aa !important;">/20</span> -->
  160. <%- if self.networks_total ~= "-" then -%></a><%- end -%>
  161. </h4>
  162. </div>
  163. </div>
  164. </div>
  165. <div class="pure-u-1-4">
  166. <div class="block pure-g">
  167. <div class="pure-u-2-5">
  168. <div class="img-con">
  169. <img src="<%=resource%>/dockerman/volumes.svg" />
  170. </div>
  171. </div>
  172. <div class="pure-u-3-5">
  173. <h4 style="text-align: right; font-size: 1rem"><%:Volumes%></h4>
  174. <h4 style="text-align: right;">
  175. <%- if self.volumes_total ~= "-" then -%><a href='<%=luci.dispatcher.build_url("admin/docker/volumes")%>'><%- end -%>
  176. <span style="font-size: 2rem; color: #2dce89;"><%=self.volumes_total%></span>
  177. <!-- <span style="font-size: 1rem; color: #8898aa !important;">/20</span> -->
  178. <%- if self.volumes_total ~= "-" then -%></a><%- end -%>
  179. </h4>
  180. </div>
  181. </div>
  182. </div>
  183. </div>