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

course_list.tmpl 4.7 kB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. <style>
  2. .text-right{
  3. float:right !important;
  4. }
  5. .header{
  6. font-weight:bold;
  7. font-size: 18px;
  8. font-family: SourceHanSansSC-medium;
  9. }
  10. .cor{
  11. color:#0366D6 !important;
  12. }
  13. .header_card{
  14. /* color:#003A8C !important; */
  15. color:#101010 !important;
  16. margin: 10px 0 0px 0;
  17. height: 25px;
  18. font-size: 18px;
  19. }
  20. .marg{
  21. margin: 0 5px !important;
  22. }
  23. .content_list{
  24. max-height: 130px;
  25. overflow: auto;
  26. }
  27. .Relist{
  28. color:#0366D6 !important;
  29. }
  30. .descript_height{
  31. color: #999999 !important;
  32. margin: 10px 0;
  33. height: 40px !important;
  34. word-break:break-all;
  35. line-height: 20px;
  36. overflow: hidden;
  37. /* overflow: hidden!important;
  38. word-wrap:break-word!important; */
  39. }
  40. .tags_height{
  41. height: 30px !important;
  42. }
  43. .full_height{
  44. height: 100%;
  45. }
  46. .omit{
  47. overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  48. }
  49. /deep/ ui.checkbox input[type=checkbox]::after{
  50. border: 1px solid #0366D6 !important;
  51. }
  52. .nowrap-2 {
  53. /* height: 2.837em; */
  54. /* line-height: 1.4285em; */
  55. overflow: hidden;
  56. overflow: hidden;
  57. display: -webkit-box;
  58. -webkit-line-clamp: 2;
  59. -webkit-box-orient: vertical;
  60. }
  61. .course_topic{
  62. color:#0366D6 !important;
  63. background-color: rgba(179, 219, 219, 0.4) !important;
  64. font-weight:normal !important
  65. }
  66. .tag_text{
  67. /* margin-top: 2px; */
  68. /* margin-left: 0.5em; */
  69. font-size: 14px;
  70. }
  71. .card{
  72. box-shadow: 0px 4px 4px 0px rgba(232, 232, 232, 60) !important;
  73. border-radius: 5px;
  74. border:1px solid #E8E8E8 !important;
  75. }
  76. .tags{
  77. position: relative;
  78. overflow: hidden;
  79. height: 30px;
  80. line-height: 30px;
  81. -webkit-line-clamp: 1;
  82. -webkit-box-orient: vertical;
  83. }
  84. </style>
  85. <div style="width: 100%;">
  86. <div class="ui three cards" style="margin-bottom: 10px;">
  87. {{range .Repos}}
  88. <div class="card " >
  89. <div class="extra full_height cor" >
  90. <div class="content " >
  91. {{if .Topics }}
  92. <div class="omit tags " style="position: relative;">
  93. {{range .Topics}}
  94. {{if ne . "" }}<a style="max-width:100%;margin: 5px 0;display:inline-flex;cursor:default" ><span class="ui small label topic course_topic" >{{.}}</span></a>{{end}}
  95. {{end}}
  96. </div>
  97. {{end}}
  98. </div>
  99. <div class=" header header_card omit" >
  100. <a class="header_card image poping up " href="{{.Link}}" data-content="{{.Alias}}" data-position="top left" data-variation="tiny inverted"> {{.Alias}}</a>
  101. </div>
  102. <div class='content descript_height nowrap-2'>
  103. {{.Description}}
  104. </div>
  105. </div>
  106. <div class=" extra content" style="color:#888888;border-top: none !important;padding-top: 0px;margin-bottom: 15px;">
  107. <div class="left aligned author">
  108. <!-- <span > -->
  109. {{if .Creator }}
  110. <a href="{{.Creator.Name}}" title="{{.Creator.Name}}">
  111. <img class="ui avatar image" style="width: 22px;height:22px;margin-top:-5px" src="{{.Creator.RelAvatarLink}}">
  112. </a>
  113. {{else}}
  114. <a href="{{.Owner.Name}}" title="{{.Owner.Name}}">
  115. <img class="ui avatar image" style="width: 22px;height:22px;margin-top:-5px" src="{{.Owner.RelAvatarLink}}">
  116. </a>
  117. {{end}}
  118. {{$.i18n.Tr "org.repo_released"}}&nbsp;: &nbsp; {{TimeSinceUnixShort .CreatedUnix}}
  119. <!-- </span> -->
  120. </div>
  121. </div>
  122. </div>
  123. {{end}}
  124. </div>
  125. </div>