Browse Source

Now Pull, Issues and Milestone show message if there is nothing and Closes #96

Yoginth 7 years ago
parent
commit
cad17379cf
2 changed files with 14 additions and 2 deletions
  1. 7 1
      templates/repo/issue/list.tmpl
  2. 7 1
      templates/repo/issue/milestones.tmpl

+ 7 - 1
templates/repo/issue/list.tmpl

@@ -101,7 +101,13 @@
 				</div>
 			</div>
 		</div>
-
+		{{if not .Issues}}
+			<div class="ui center dashboard no-activity">
+				<img class="ui avatar small image" src="https://cdn.gitote.in/img/svg/no_data.svg">
+				<br/>
+				<h2>Nothing Here</h2>
+			</div>
+		{{end}}
 		<div class="issue list">
 			{{range .Issues}}
 				{{ $timeStr:= TimeSince .Created $.Lang }}

+ 7 - 1
templates/repo/issue/milestones.tmpl

@@ -22,7 +22,13 @@
 				{{.i18n.Tr "repo.milestones.close_tab" .ClosedCount}}
 			</a>
 		</div>
-
+		{{if not .Milestones}}
+			<div class="ui center dashboard no-activity">
+				<img class="ui avatar small image" src="https://cdn.gitote.in/img/svg/milestone.svg">
+				<br/>
+				<h2>No Milestones</h2>
+			</div>
+		{{end}}
 		<div class="milestone list">
 			{{range .Milestones}}
 				<li class="item">