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.

601 lines
19 KiB

  1. ---
  2. layout : 'default'
  3. css : 'comment'
  4. title : 'Comment'
  5. description : 'A comment is used to display user feedback to site content'
  6. type : 'UI View'
  7. element : 'comment'
  8. elementType : 'view'
  9. themes : ['Default', 'Chubby']
  10. ---
  11. <%- @partial('header') %>
  12. <link rel="stylesheet/less" type="text/css" href="/build/less/definitions/views/comment.less" />
  13. <div class="main container">
  14. <div class="peek">
  15. <div class="ui vertical pointing secondary menu">
  16. <a class="active item">Types</a>
  17. <a class="item">Content</a>
  18. <a class="item">State</a>
  19. <a class="item">Variations</a>
  20. </div>
  21. </div>
  22. <h2 class="ui dividing header">Types</h2>
  23. <div class="example">
  24. <h4 class="ui header">Comments</h4>
  25. <p>A basic list of comments</p>
  26. <h2 class="ui header">
  27. <i class="comment icon"></i> Comments
  28. </h2>
  29. <div class="ui comments">
  30. <div class="comment">
  31. <a class="avatar">
  32. <img src="/images/demo/avatar.jpg">
  33. </a>
  34. <div class="content">
  35. <a class="author">Dog Doggington</a>
  36. <div class="metadata">
  37. <span class="date">Today at 5:42PM</span>
  38. </div>
  39. <div class="text">
  40. I think this is a great idea and i am voting on it
  41. </div>
  42. <div class="actions">
  43. <a class="reply">Reply</a>
  44. </div>
  45. </div>
  46. </div>
  47. <div class="comment">
  48. <a class="avatar">
  49. <img src="/images/demo/avatar2.jpg">
  50. </a>
  51. <div class="content">
  52. <a class="author">Pawfin Dog</a>
  53. <div class="metadata">
  54. <span class="date">Yesterday at 12:30AM</span>
  55. </div>
  56. <div class="text">
  57. <p>This is against my beliefs, and the beliefs of other dogs like me. Dogs aren't cats and cats aren't dogs, the two should never be mistaken. I'm sure the creator of this post would mistake a cat for a dog.</p>
  58. <p>I however and dogs like me, would never want to listen to someone who sympathizes so much with cats. Who likes cats anyway.</p>
  59. </div>
  60. <div class="actions">
  61. <a class="reply">Reply</a>
  62. </div>
  63. </div>
  64. <div class="comments">
  65. <div class="comment">
  66. <a class="avatar">
  67. <img src="/images/demo/avatar.jpg">
  68. </a>
  69. <div class="content">
  70. <a class="author">Dog Doggington</a>
  71. <div class="metadata">
  72. <span class="date">Just now</span>
  73. </div>
  74. <div class="text">
  75. +1 I agree with you.
  76. </div>
  77. <div class="actions">
  78. <a class="reply">Reply</a>
  79. </div>
  80. </div>
  81. </div>
  82. </div>
  83. </div>
  84. <div class="comment">
  85. <a class="avatar">
  86. <img src="/images/demo/avatar3.jpg">
  87. </a>
  88. <div class="content">
  89. <a class="author">Roofus</a>
  90. <div class="metadata">
  91. <span class="date">5 days ago</span>
  92. </div>
  93. <div class="text">
  94. I like to bark. If you like to bark visit <a href="http://www.bark.com"> this website</a> for great resources on barking.
  95. </div>
  96. <div class="actions">
  97. <a class="reply">Reply</a>
  98. </div>
  99. </div>
  100. </div>
  101. <form class="ui reply form">
  102. <div class="field">
  103. <textarea></textarea>
  104. </div>
  105. <div class="ui blue labeled submit icon button">
  106. <i class="icon edit"></i> Add Reply
  107. </div>
  108. </form>
  109. </div>
  110. </div>
  111. <h2 class="ui dividing header">Content</h2>
  112. <h3 class="ui header">Comment</h3>
  113. <div class="example">
  114. <h4 class="ui header">Avatar</h4>
  115. <p>A comment can contain an image or avatar</p>
  116. <div class="ui comments">
  117. <div class="comment">
  118. <a class="avatar">
  119. <img src="/images/demo/avatar.jpg">
  120. </a>
  121. <div class="content">
  122. <a class="author">Dog Doggington</a>
  123. <div class="text">
  124. I think this is a great idea and i am voting on it
  125. </div>
  126. </div>
  127. </div>
  128. </div>
  129. </div>
  130. <div class="example">
  131. <h4 class="ui header">Metadata</h4>
  132. <p>A comment can contain metadata about the comment, an arbitrary amount of metadata may be defined.</p>
  133. <div class="ui comments">
  134. <div class="comment">
  135. <a class="avatar">
  136. <img src="/images/demo/avatar.jpg">
  137. </a>
  138. <div class="content">
  139. <a class="author">Dog Doggington</a>
  140. <div class="metadata">
  141. <div class="date">2 days ago</div>
  142. <div class="rating">
  143. <i class="star icon"></i>
  144. 5 Faves
  145. </div>
  146. </div>
  147. <div class="text">
  148. I think this is a great idea and i am voting on it
  149. </div>
  150. </div>
  151. </div>
  152. </div>
  153. </div>
  154. <div class="example">
  155. <h4 class="ui header">Actions</h4>
  156. <p>A comment can contain an list of actions a user may perform related to this comment.</p>
  157. <div class="ui comments">
  158. <div class="comment">
  159. <a class="avatar">
  160. <img src="/images/demo/avatar.jpg">
  161. </a>
  162. <div class="content">
  163. <a class="author">Dog Doggington</a>
  164. <div class="metadata">
  165. <div class="date">2 days ago</div>
  166. <div class="rating">
  167. <i class="star icon"></i>
  168. 5 Faves
  169. </div>
  170. </div>
  171. <div class="text">
  172. I think this is a great idea and i am voting on it
  173. </div>
  174. <div class="actions">
  175. <a class="reply">Reply</a>
  176. </div>
  177. </div>
  178. </div>
  179. </div>
  180. </div>
  181. <div class="example">
  182. <h4 class="ui header">Reply Form</h4>
  183. <p>A comment can contain a form to reply to a comment. This may have arbitrary content.</p>
  184. <div class="ui comments">
  185. <div class="comment">
  186. <a class="avatar">
  187. <img src="/images/demo/avatar.jpg">
  188. </a>
  189. <div class="content">
  190. <a class="author">Dog Doggington</a>
  191. <div class="metadata">
  192. <div class="date">2 days ago</div>
  193. </div>
  194. <div class="text">
  195. I think this is a great idea and i am voting on it
  196. </div>
  197. <div class="actions">
  198. <a class="reply active">Reply</a>
  199. </div>
  200. <form class="ui reply form">
  201. <div class="field">
  202. <textarea></textarea>
  203. </div>
  204. <div class="ui button teal submit labeled icon">
  205. <i class="icon edit"></i> Add Reply
  206. </div>
  207. </form>
  208. </div>
  209. </div>
  210. </div>
  211. </div>
  212. <div class="another example">
  213. <p>A comment reply form can also exist below a comment feed to reply specifically to the original content.
  214. <div class="ui comments">
  215. <div class="comment">
  216. <a class="avatar">
  217. <img src="/images/demo/avatar.jpg">
  218. </a>
  219. <div class="content">
  220. <a class="author">Dog Doggington</a>
  221. <div class="metadata">
  222. <div class="date">2 days ago</div>
  223. </div>
  224. <div class="text">
  225. I think this is a great idea and i am voting on it
  226. </div>
  227. <div class="actions">
  228. <a class="reply">Reply</a>
  229. </div>
  230. </div>
  231. </div>
  232. <div class="comment">
  233. <a class="avatar">
  234. <img src="/images/demo/avatar2.jpg">
  235. </a>
  236. <div class="content">
  237. <a class="author">Pawfin Dog</a>
  238. <div class="metadata">
  239. <div class="date">1 day ago</div>
  240. </div>
  241. <div class="text">
  242. I think this is a great idea and i am voting on it
  243. </div>
  244. <div class="actions">
  245. <a class="reply">Reply</a>
  246. </div>
  247. </div>
  248. </div>
  249. <form class="ui reply form">
  250. <div class="field">
  251. <textarea></textarea>
  252. </div>
  253. <div class="ui button teal submit labeled icon">
  254. <i class="icon edit"></i> Add Comment
  255. </div>
  256. </form>
  257. </div>
  258. </div>
  259. <h2 class="ui dividing header">States</h2>
  260. <div class="example">
  261. <h4 class="ui header">Collapsed</h4>
  262. <p>Comments can be collapsed, or hidden from view</p>
  263. <div class="ui comments">
  264. <div class="comment">
  265. <a class="avatar">
  266. <img src="/images/demo/avatar.jpg">
  267. </a>
  268. <div class="content">
  269. <a class="author">Dog Doggington</a>
  270. <div class="metadata">
  271. <span class="date">2 days ago</span>
  272. </div>
  273. <div class="text">
  274. I think this is a great idea and i am voting on it
  275. </div>
  276. <div class="actions">
  277. <a class="reply">Reply</a>
  278. </div>
  279. </div>
  280. <div class="collapsed comments">
  281. <div class="comment">
  282. <a class="avatar">
  283. <img src="/images/demo/avatar2.jpg">
  284. </a>
  285. <div class="content">
  286. <a class="author">Pawfin Dog</a>
  287. <div class="metadata">
  288. <span class="date">1 day ago</span>
  289. </div>
  290. <div class="text">
  291. I think this is a great idea and i am voting on it
  292. </div>
  293. <div class="actions">
  294. <a class="reply">Reply</a>
  295. </div>
  296. </div>
  297. <div class="comments">
  298. <div class="comment">
  299. <a class="avatar">
  300. <img src="/images/demo/avatar.jpg">
  301. </a>
  302. <div class="content">
  303. <a class="author">Dog Doggington</a>
  304. <div class="metadata">
  305. <span class="date">20 minutes ago</span>
  306. </div>
  307. <div class="text">
  308. I think this is a great idea and i am voting on it
  309. </div>
  310. <div class="actions">
  311. <a class="reply">Reply</a>
  312. </div>
  313. </div>
  314. </div>
  315. </div>
  316. </div>
  317. </div>
  318. </div>
  319. </div>
  320. </div>
  321. <h2 class="ui dividing header">Variations</h2>
  322. <div class="example">
  323. <h4 class="ui header">Threaded</h4>
  324. <p>A comment list can be threaded to showing the relationship between conversations</p>
  325. <div class="ui threaded comments">
  326. <div class="comment">
  327. <a class="avatar">
  328. <img src="/images/demo/avatar.jpg">
  329. </a>
  330. <div class="content">
  331. <a class="author">Dog Doggington</a>
  332. <div class="metadata">
  333. <span class="date">2 days ago</span>
  334. </div>
  335. <div class="text">
  336. I think this is a great idea and i am voting on it
  337. </div>
  338. <div class="actions">
  339. <a class="reply">Reply</a>
  340. </div>
  341. </div>
  342. <div class="comments">
  343. <div class="comment">
  344. <a class="avatar">
  345. <img src="/images/demo/avatar2.jpg">
  346. </a>
  347. <div class="content">
  348. <a class="author">Pawfin Dog</a>
  349. <div class="metadata">
  350. <span class="date">1 day ago</span>
  351. </div>
  352. <div class="text">
  353. I think this is a great idea and i am voting on it
  354. </div>
  355. <div class="actions">
  356. <a class="reply">Reply</a>
  357. </div>
  358. </div>
  359. <div class="comments">
  360. <div class="comment">
  361. <a class="avatar">
  362. <img src="/images/demo/avatar.jpg">
  363. </a>
  364. <div class="content">
  365. <a class="author">Dog Doggington</a>
  366. <div class="metadata">
  367. <span class="date">20 minutes ago</span>
  368. </div>
  369. <div class="text">
  370. I think this is a great idea and i am voting on it
  371. </div>
  372. <div class="actions">
  373. <a class="reply">Reply</a>
  374. </div>
  375. </div>
  376. </div>
  377. <div class="comment">
  378. <a class="avatar">
  379. <img src="/images/demo/avatar.jpg">
  380. </a>
  381. <div class="content">
  382. <a class="author">Dog Doggington</a>
  383. <div class="metadata">
  384. <span class="date">20 minutes ago</span>
  385. </div>
  386. <div class="text">
  387. Also pizza.
  388. </div>
  389. <div class="actions">
  390. <a class="reply">Reply</a>
  391. </div>
  392. </div>
  393. </div>
  394. </div>
  395. </div>
  396. <div class="comment">
  397. <a class="avatar">
  398. <img src="/images/demo/avatar.jpg">
  399. </a>
  400. <div class="content">
  401. <a class="author">Dog Doggington</a>
  402. <div class="metadata">
  403. <span class="date">2 days ago</span>
  404. </div>
  405. <div class="text">
  406. I think this is a great idea and i am voting on it
  407. </div>
  408. <div class="actions">
  409. <a class="reply">Reply</a>
  410. </div>
  411. </div>
  412. </div>
  413. </div>
  414. </div>
  415. <div class="comment">
  416. <a class="avatar">
  417. <img src="/images/demo/avatar.jpg">
  418. </a>
  419. <div class="content">
  420. <a class="author">Dog Doggington</a>
  421. <div class="metadata">
  422. <span class="date">20 hours ago</span>
  423. </div>
  424. <div class="text">
  425. I think this is a great idea and i am voting on it
  426. </div>
  427. <div class="actions">
  428. <a class="reply">Reply</a>
  429. </div>
  430. </div>
  431. </div>
  432. <div class="comment">
  433. <a class="avatar">
  434. <img src="/images/demo/avatar2.jpg">
  435. </a>
  436. <div class="content">
  437. <a class="author">Pawfin Dog</a>
  438. <div class="metadata">
  439. <span class="date">15 hours ago</span>
  440. </div>
  441. <div class="text">
  442. I think this is a great idea and i am voting on it
  443. </div>
  444. <div class="actions">
  445. <a class="reply">Reply</a>
  446. </div>
  447. </div>
  448. </div>
  449. </div>
  450. </div>
  451. <div class="example">
  452. <h4 class="ui header">Minimal</h4>
  453. <p>Comments can hide extra information unless a user shows intent to interact with a comment.</p>
  454. <div class="ui minimal comments">
  455. <div class="comment">
  456. <a class="avatar">
  457. <img src="/images/demo/avatar.jpg">
  458. </a>
  459. <div class="content">
  460. <a class="author">Dog Doggington</a>
  461. <div class="metadata">
  462. <span class="date">2 days ago</span>
  463. </div>
  464. <div class="text">
  465. I think this is a great idea and i am voting on it
  466. </div>
  467. <div class="actions">
  468. <a class="reply">Reply</a>
  469. </div>
  470. </div>
  471. <div class="comments">
  472. <div class="comment">
  473. <a class="avatar">
  474. <img src="/images/demo/avatar2.jpg">
  475. </a>
  476. <div class="content">
  477. <a class="author">Pawfin Dog</a>
  478. <div class="metadata">
  479. <span class="date">1 day ago</span>
  480. </div>
  481. <div class="text">
  482. I think this is a great idea and i am voting on it
  483. </div>
  484. <div class="actions">
  485. <a class="reply">Reply</a>
  486. </div>
  487. </div>
  488. <div class="comments">
  489. <div class="comment">
  490. <a class="avatar">
  491. <img src="/images/demo/avatar.jpg">
  492. </a>
  493. <div class="content">
  494. <a class="author">Dog Doggington</a>
  495. <div class="metadata">
  496. <span class="date">20 minutes ago</span>
  497. </div>
  498. <div class="text">
  499. I think this is a great idea and i am voting on it
  500. </div>
  501. <div class="actions">
  502. <a class="reply">Reply</a>
  503. </div>
  504. </div>
  505. </div>
  506. <div class="comment">
  507. <a class="avatar">
  508. <img src="/images/demo/avatar.jpg">
  509. </a>
  510. <div class="content">
  511. <a class="author">Dog Doggington</a>
  512. <div class="metadata">
  513. <span class="date">20 minutes ago</span>
  514. </div>
  515. <div class="text">
  516. Also pizza.
  517. </div>
  518. <div class="actions">
  519. <a class="reply">Reply</a>
  520. </div>
  521. </div>
  522. </div>
  523. </div>
  524. </div>
  525. <div class="comment">
  526. <a class="avatar">
  527. <img src="/images/demo/avatar.jpg">
  528. </a>
  529. <div class="content">
  530. <a class="author">Dog Doggington</a>
  531. <div class="metadata">
  532. <span class="date">2 days ago</span>
  533. </div>
  534. <div class="text">
  535. I think this is a great idea and i am voting on it
  536. </div>
  537. <div class="actions">
  538. <a class="reply">Reply</a>
  539. </div>
  540. </div>
  541. </div>
  542. </div>
  543. </div>
  544. <div class="comment">
  545. <a class="avatar">
  546. <img src="/images/demo/avatar.jpg">
  547. </a>
  548. <div class="content">
  549. <a class="author">Dog Doggington</a>
  550. <div class="metadata">
  551. <span class="date">20 hours ago</span>
  552. </div>
  553. <div class="text">
  554. I think this is a great idea and i am voting on it
  555. </div>
  556. <div class="actions">
  557. <a class="reply">Reply</a>
  558. </div>
  559. </div>
  560. </div>
  561. <div class="comment">
  562. <a class="avatar">
  563. <img src="/images/demo/avatar2.jpg">
  564. </a>
  565. <div class="content">
  566. <a class="author">Pawfin Dog</a>
  567. <div class="metadata">
  568. <span class="date">15 hours ago</span>
  569. </div>
  570. <div class="text">
  571. I think this is a great idea and i am voting on it
  572. </div>
  573. <div class="actions">
  574. <a class="reply">Reply</a>
  575. </div>
  576. </div>
  577. </div>
  578. </div>
  579. </div>
  580. </div>