소스 검색

Moved to Own CDN and Closes #84

Yoginth 7 년 전
부모
커밋
5c58092052
38개의 변경된 파일92개의 추가작업 그리고 92개의 파일을 삭제
  1. 3 3
      README.md
  2. 1 1
      models/user.go
  3. 1 1
      pkg/tool/tool.go
  4. 3 3
      public/less/_home.less
  5. 9 9
      public/manifest.json
  6. 11 11
      public/serviceworker.js
  7. 1 1
      templates/admin/dashboard.tmpl
  8. 5 5
      templates/base/footer.tmpl
  9. 1 1
      templates/base/footer_content.tmpl
  10. 4 4
      templates/base/head.tmpl
  11. 1 1
      templates/embed/user.tmpl
  12. 1 1
      templates/explore/organizations.tmpl
  13. 2 2
      templates/explore/repo_list.tmpl
  14. 1 1
      templates/explore/repos.tmpl
  15. 1 1
      templates/explore/users.tmpl
  16. 4 4
      templates/home.tmpl
  17. 1 1
      templates/misc/ad.tmpl
  18. 3 3
      templates/misc/internscert.tmpl
  19. 1 1
      templates/misc/soon.tmpl
  20. 2 2
      templates/org/settings/webhook_new.tmpl
  21. 1 1
      templates/pages/security.tmpl
  22. 1 1
      templates/repo/forks.tmpl
  23. 3 3
      templates/repo/settings/webhook/list.tmpl
  24. 4 4
      templates/repo/user_cards.tmpl
  25. 2 2
      templates/status/404.tmpl
  26. 2 2
      templates/status/500.tmpl
  27. 1 1
      templates/user/auth/activate.tmpl
  28. 1 1
      templates/user/auth/forgot_passwd.tmpl
  29. 1 1
      templates/user/auth/login.tmpl
  30. 1 1
      templates/user/auth/reset_passwd.tmpl
  31. 1 1
      templates/user/auth/signup.tmpl
  32. 1 1
      templates/user/auth/two_factor.tmpl
  33. 1 1
      templates/user/auth/two_factor_recovery_code.tmpl
  34. 4 4
      templates/user/dashboard/bootcamp.tmpl
  35. 1 1
      templates/user/dashboard/dashboard.tmpl
  36. 1 1
      templates/user/dashboard/feeds.tmpl
  37. 2 2
      templates/user/dashboard/issues.tmpl
  38. 8 8
      templates/user/profile.tmpl

+ 3 - 3
README.md

@@ -120,19 +120,19 @@ View **Gitote** documentations [here](docs)
 
 <p>
     <a href="https://cloudflare.com/?utm_source=Gitote">
-        <img src="https://unpkg.com/gitote@1.3.6/img/sponsors/cloudflare.png" width="220"/>
+        <img src="https://cdn.gitote.in/img/sponsors/cloudflare.png" width="220"/>
     </a>
 </p>
 
 <p>
     <a href="https://m.do.co/c/1ddec8d50826">
-        <img src="https://unpkg.com/gitote@1.3.3/img/sponsors/digitalocean.png" width="220"/>
+        <img src="https://cdn.gitote.in/img/sponsors/digitalocean.png" width="220"/>
     </a>
 </p>
 
 <p>
     <a href="https://browserstack.com/?utm_source=Gitote">
-        <img src="https://unpkg.com/gitote@1.3.3/img/sponsors/browserstack.png" width="220"/>
+        <img src="https://cdn.gitote.in/img/sponsors/browserstack.png" width="220"/>
     </a>
 </p>
 

+ 1 - 1
models/user.go

@@ -301,7 +301,7 @@ func (u *User) GenerateRandomAvatar() error {
 // which includes app sub-url as prefix. However, it is possible
 // to return full URL if user enables Gravatar-like service.
 func (u *User) RelAvatarLink() string {
-	defaultImgUrl := "https://unpkg.com/gitote@1.0.1/img/avatar_default.png"
+	defaultImgUrl := "https://cdn.gitote.in/img/avatar_default.png"
 	if u.ID == -1 {
 		return defaultImgUrl
 	}

+ 1 - 1
pkg/tool/tool.go

@@ -211,7 +211,7 @@ func AvatarLink(email string) (url string) {
 		url = setting.GravatarSource + HashEmail(email) + "?d=identicon"
 	}
 	if len(url) == 0 {
-		url = "https://unpkg.com/gitote@1.0.1/img/avatar_default.png"
+		url = "https://cdn.gitote.in/img/avatar_default.png"
 	}
 	return url
 }

+ 3 - 3
public/less/_home.less

@@ -39,7 +39,7 @@
 		font-weight: 400;
 	}
 	&.bg {
-		background: url(https://unpkg.com/gitote@1.0.7/img/signup_prompt.png), #f3f3f3;
+		background: url(https://cdn.gitote.in/img/signup_prompt.png), #f3f3f3;
 		background-position: top center,0 0;
 		background-size: 100% auto;
 	}
@@ -79,7 +79,7 @@
 		}
 	}
 	&.prompt {
-		background-image: url(https://unpkg.com/gitote@1.0.1/img/pattern.svg);
+		background-image: url(https://cdn.gitote.in/img/pattern.svg);
 		background-position: center 30%;
 		background-size: 25% auto;
 		background-color: #f3f3f3;
@@ -114,7 +114,7 @@
 @media (max-width: 1020px) {
 	.home-main {
 		&.bg {
-			background: url(https://unpkg.com/gitote@1.0.1/img/pattern.svg), #f3f3f3;
+			background: url(https://cdn.gitote.in/img/pattern.svg), #f3f3f3;
 		}
 		.desc, &.prompt {
 			display: none !important;

+ 9 - 9
public/manifest.json

@@ -3,39 +3,39 @@
    "icons":[  
       {  
          "sizes":"114x114",
-         "src":"https://unpkg.com/gitote@1.3.5/touch/apple-touch-icon-114x114.png"
+         "src":"https://cdn.gitote.in/touch/apple-touch-icon-114x114.png"
       },
       {  
          "sizes":"120x120",
-         "src":"https://unpkg.com/gitote@1.3.5/touch/apple-touch-icon-120x120.png"
+         "src":"https://cdn.gitote.in/touch/apple-touch-icon-120x120.png"
       },
       {  
          "sizes":"144x144",
-         "src":"https://unpkg.com/gitote@1.3.5/touch/apple-touch-icon-144x144.png"
+         "src":"https://cdn.gitote.in/touch/apple-touch-icon-144x144.png"
       },
       {  
          "sizes":"152x152",
-         "src":"https://unpkg.com/gitote@1.3.5/touch/apple-touch-icon-152x152.png"
+         "src":"https://cdn.gitote.in/touch/apple-touch-icon-152x152.png"
       },
       {  
          "sizes":"180x180",
-         "src":"https://unpkg.com/gitote@1.3.5/touch/apple-touch-icon-180x180.png"
+         "src":"https://cdn.gitote.in/touch/apple-touch-icon-180x180.png"
       },
       {  
          "sizes":"57x57",
-         "src":"https://unpkg.com/gitote@1.3.5/touch/apple-touch-icon-57x57.png"
+         "src":"https://cdn.gitote.in/touch/apple-touch-icon-57x57.png"
       },
       {  
          "sizes":"60x60",
-         "src":"https://unpkg.com/gitote@1.3.5/touch/apple-touch-icon-60x60.png"
+         "src":"https://cdn.gitote.in/touch/apple-touch-icon-60x60.png"
       },
       {  
          "sizes":"72x72",
-         "src":"https://unpkg.com/gitote@1.3.5/touch/apple-touch-icon-72x72.png"
+         "src":"https://cdn.gitote.in/touch/apple-touch-icon-72x72.png"
       },
       {  
          "sizes":"76x76",
-         "src":"https://unpkg.com/gitote@1.3.5/touch/apple-touch-icon-76x76.png"
+         "src":"https://cdn.gitote.in/touch/apple-touch-icon-76x76.png"
       }
    ]
 }

+ 11 - 11
public/serviceworker.js

@@ -2,11 +2,11 @@ var STATIC_CACHE = 'gitote-sw-cache';
 var urlsToCache = [
   // js
   'expansion/expansion.js',
-  'https://unpkg.com/gitote@1.3.4/js/gitote.min.js',
+  'https://cdn.gitote.in/js/gitote.min.js',
   'https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.min.js',
   'https://cdnjs.cloudflare.com/ajax/libs/jquery.AreYouSure/1.9.0/jquery.are-you-sure.min.js',
   'https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.3.1/semantic.min.js',
-  'https://unpkg.com/gitote@1.0.2/plugins/highlight/highlight.pack.js',
+  'https://cdn.gitote.in/plugins/highlight/highlight.pack.js',
   'https://cdnjs.cloudflare.com/ajax/libs/emojify.js/1.1.0/js/emojify.min.js',
   'https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.5.9/clipboard.min.js',
   'https://cdn.jsdelivr.net/npm/notebookjs@0.3.0/notebook.min.js',
@@ -16,29 +16,29 @@ var urlsToCache = [
   'https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.17.0/mode/meta.js',
   'https://cdnjs.cloudflare.com/ajax/libs/autosize.js/4.0.2/autosize.min.js',
   'https://cdnjs.cloudflare.com/ajax/libs/dropzone/4.2.0/dropzone.js',
-  'https://unpkg.com/gitote@1.0.2/plugins/datetimepicker/jquery.datetimepicker.js',
+  'https://cdn.gitote.in/plugins/datetimepicker/jquery.datetimepicker.js',
   'https://cdnjs.cloudflare.com/ajax/libs/jquery-minicolors/2.2.3/jquery.minicolors.min.js',
 
   
   // css
   '/css/gitote.min.css',
-  'https://unpkg.com/gitote@1.2.4/css/bundle.min.css',
+  'https://cdn.gitote.in/css/bundle.min.css',
   'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css',
-  'https://unpkg.com/gitote@1.0.3/plugins/octicons/octicons.min.css',
-  'https://unpkg.com/gitote@1.0.2/plugins/highlight/github.css',
+  'https://cdn.gitote.in/plugins/octicons/octicons.min.css',
+  'https://cdn.gitote.in/plugins/highlight/github.css',
   'https://cdnjs.cloudflare.com/ajax/libs/simplemde/1.10.1/simplemde.min.css',
   'https://cdnjs.cloudflare.com/ajax/libs/dropzone/4.2.0/dropzone.css',
-  'https://unpkg.com/gitote@1.0.2/plugins/datetimepicker/jquery.datetimepicker.css',
+  'https://cdn.gitote.in/plugins/datetimepicker/jquery.datetimepicker.css',
   'https://cdnjs.cloudflare.com/ajax/libs/jquery-minicolors/2.2.3/jquery.minicolors.min.css',
   
   // img
   '/fluidicon.png',
   '/og.png',
   '/black.png',
-  'https://unpkg.com/gitote@1.0.1/logo.png',
-  'https://unpkg.com/gitote@1.0.1/img/404.png',
-  'https://unpkg.com/gitote@1.0.5/logo.svg',
-  'https://unpkg.com/gitote@1.0.1/img/500.png',
+  'https://cdn.gitote.in/logo.png',
+  'https://cdn.gitote.in/img/404.png',
+  'https://cdn.gitote.in/logo.svg',
+  'https://cdn.gitote.in/img/500.png',
   
   // misc
   '/favicon.ico',

+ 1 - 1
templates/admin/dashboard.tmpl

@@ -22,7 +22,7 @@
 						<br/>
 						PostgreSQL - <a href="https://www.postgresql.org">ToDo</a>
 					</h3>
-					<img style="margin-top:-9em;margin-right:1em" class="ui image tiny right" src="https://unpkg.com/gitote@1.2.1/logo.png">
+					<img style="margin-top:-9em;margin-right:1em" class="ui image tiny right" src="https://cdn.gitote.in/logo.png">
 				</div>
 				<h4 class="ui top attached header">
 					Statistics 📈

+ 5 - 5
templates/base/footer.tmpl

@@ -34,16 +34,16 @@
 
 <!-- Third-party libraries -->
 {{if .RequireHighlightJS}}
-	<link rel="stylesheet" href="https://unpkg.com/gitote@1.0.2/plugins/highlight/github.css">
-	<script src="https://unpkg.com/gitote@1.0.2/plugins/highlight/highlight.pack.js"></script>
+	<link rel="stylesheet" href="https://cdn.gitote.in/plugins/highlight/github.css">
+	<script src="https://cdn.gitote.in/plugins/highlight/highlight.pack.js"></script>
 {{end}}
 {{if .RequireMinicolors}}
 	<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jquery-minicolors/2.2.3/jquery.minicolors.min.css">
 	<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-minicolors/2.2.3/jquery.minicolors.min.js"></script>
 {{end}}
 {{if .RequireDatetimepicker}}
-	<link rel="stylesheet" href="https://unpkg.com/gitote@1.0.2/plugins/datetimepicker/jquery.datetimepicker.css">
-	<script src="https://unpkg.com/gitote@1.0.2/plugins/datetimepicker/jquery.datetimepicker.js"></script>
+	<link rel="stylesheet" href="https://cdn.gitote.in/plugins/datetimepicker/jquery.datetimepicker.css">
+	<script src="https://cdn.gitote.in/plugins/datetimepicker/jquery.datetimepicker.js"></script>
 {{end}}
 {{if .RequireDropzone}}
 	<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/dropzone/4.2.0/dropzone.css">
@@ -52,7 +52,7 @@
 {{if .RequireAutosize}}
 	<script src="https://cdnjs.cloudflare.com/ajax/libs/autosize.js/4.0.2/autosize.min.js"></script>
 {{end}}
-<script src="https://unpkg.com/gitote@1.3.1/js/emojify.js"></script>
+<script src="https://cdn.gitote.in/js/emojify.js"></script>
 <script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/1.5.9/clipboard.min.js"></script>
 
 </html>

+ 1 - 1
templates/base/footer_content.tmpl

@@ -1,6 +1,6 @@
 <div class="ui stackable grid container home-footer home-main padding">
 	<div class="seven wide right floated column">
-		<span class="ui header"><img src="https://unpkg.com/gitote@1.0.1/logo.png">© 2018 Gitote</span>
+		<span class="ui header"><img src="https://cdn.gitote.in/logo.png">© 2018 Gitote</span>
 	</div>
 	<div class="two wide column">
 		<h4 class="ui header explore-card font">Product</h4>

+ 4 - 4
templates/base/head.tmpl

@@ -30,7 +30,7 @@
 	<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
 	<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.AreYouSure/1.9.0/jquery.are-you-sure.min.js"></script>
 	<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css">
-	<link rel="stylesheet" href="https://unpkg.com/gitote@1.0.3/plugins/octicons/octicons.min.css">
+	<link rel="stylesheet" href="https://cdn.gitote.in/plugins/octicons/octicons.min.css">
 
 	{{if .IsIPythonNotebook}}
 
@@ -55,7 +55,7 @@
 	<script src="https://cdnjs.cloudflare.com/ajax/libs/jscolor/2.0.4/jscolor.min.js"></script>
 	{{end}}
 
-	<link rel="stylesheet" href="https://unpkg.com/gitote@1.2.4/css/bundle.min.css">
+	<link rel="stylesheet" href="https://cdn.gitote.in/css/bundle.css">
 	<link rel="stylesheet" href="{{AppSubURL}}/css/gitote.min.css?v={{MD5 AppVer}}">
 	<noscript>
 		<style>
@@ -75,7 +75,7 @@
 	{{end}}
 
 	<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.3.1/semantic.min.js"></script>
-	<script src="https://unpkg.com/gitote@1.3.4/js/gitote.js?v={{MD5 AppVer}}"></script>
+	<script src="https://cdn.gitote.in/js/gitote.js?v={{MD5 AppVer}}"></script>
 	<script src="{{AppURL}}expansion/expansion.js?v={{MD5 AppVer}}"></script>
 
 	{{if not .IsLogged}}
@@ -105,7 +105,7 @@
 						<div class="column">
 							<div class="ui top secondary menu">
 								<a class="item brand" href="{{AppSubURL}}/">
-									<img class="ui mini image" src="https://unpkg.com/gitote@1.0.5/logo.svg">
+									<img class="ui mini image" src="https://cdn.gitote.in/logo.svg">
 								</a>
 								{{if or .IsBeta .IsAdmin .IsStaff}}
 									<span class="item navbar beta">β</span>

+ 1 - 1
templates/embed/user.tmpl

@@ -103,7 +103,7 @@ color: #303030;
             ・{{DateFmtShort .Owner.Created}}
         </div>
         <div class="preview-gitote-logo">
-            <img style="width:5vw" src="https://unpkg.com/gitote@1.0.1/logo.png" />
+            <img style="width:5vw" src="https://cdn.gitote.in/logo.png" />
         </div>
     </div>
 </div>

+ 1 - 1
templates/explore/organizations.tmpl

@@ -47,7 +47,7 @@
 					<center>
 						<div class="explore">
 							<div class="not-found">
-								<img class="ui avatar small image" src="https://unpkg.com/gitote@1.1.5/img/svg/folder.svg">
+								<img class="ui avatar small image" src="https://cdn.gitote.in/img/svg/folder.svg">
 								<br/>
 								<h2>{{.i18n.Tr "explore.orgsearch"}}</h2>
 							</div>

+ 2 - 2
templates/explore/repo_list.tmpl

@@ -4,7 +4,7 @@
 		<center>
 			<div class="explore">
 				<div class="not-found">
-					<img class="ui avatar small image" src="https://unpkg.com/gitote@1.1.5/img/svg/folder.svg">
+					<img class="ui avatar small image" src="https://cdn.gitote.in/img/svg/folder.svg">
 					<br/>
 					<h2>{{.Owner.Name}} {{$.i18n.Tr "user.error.norepos"}}</h2>
 				</div>
@@ -26,7 +26,7 @@
 	{{if not .Repos}}
 		{{if .PageIsOrgHome}}
 			<div class="ui center dashboard no-activity">
-				<img class="ui avatar small image" src="https://unpkg.com/gitote@1.1.5/img/svg/folder.svg">
+				<img class="ui avatar small image" src="https://cdn.gitote.in/img/svg/folder.svg">
 				<br/>
 				<h2>No Repository</h2>
 			</div>

+ 1 - 1
templates/explore/repos.tmpl

@@ -12,7 +12,7 @@
 					<center>
 						<div class="explore">
 							<div class="not-found">
-								<img class="ui avatar small image" src="https://unpkg.com/gitote@1.1.5/img/svg/folder.svg">
+								<img class="ui avatar small image" src="https://cdn.gitote.in/img/svg/folder.svg">
 								<br/>
 								<h2>{{.i18n.Tr "explore.reposearch"}}</h2>
 							</div>

+ 1 - 1
templates/explore/users.tmpl

@@ -54,7 +54,7 @@
 					<center>
 						<div class="explore">
 							<div class="not-found">
-								<img class="ui avatar small image" src="https://unpkg.com/gitote@1.1.5/img/svg/folder.svg">
+								<img class="ui avatar small image" src="https://cdn.gitote.in/img/svg/folder.svg">
 								<br/>
 								<h2>{{.i18n.Tr "explore.usersearch"}}</h2>
 							</div>

+ 4 - 4
templates/home.tmpl

@@ -4,7 +4,7 @@
 		<div class="ui stackable middle very relaxed page grid home-head">
 			<div class="sixteen wide center aligned centered column">
 				<div class="logo">
-					<img height="80px" src="https://unpkg.com/gitote@1.0.1/logo.png" />
+					<img height="80px" src="https://cdn.gitote.in/logo.png" />
 				</div>
 				<div class="hero">
 					<h1 class="ui icon header title">
@@ -34,7 +34,7 @@
 	<div class="ui two column center aligned divided very relaxed stackable grid container">
 		<div class="row">
 			<div class="column">
-				<img src="https://unpkg.com/gitote@1.1.5/img/svg/developer.svg" class="ui centered tiny image">
+				<img src="https://cdn.gitote.in/img/svg/developer.svg" class="ui centered tiny image">
 				<h2 class="ui icon header">
 					Write better code
 				</h2>
@@ -42,7 +42,7 @@
 				<a class="ui large button" href="#">Code Review</a>
 			</div>
 			<div class="column">
-				<img src="https://unpkg.com/gitote@1.1.5/img/svg/creation.svg" class="ui centered tiny image">
+				<img src="https://cdn.gitote.in/img/svg/creation.svg" class="ui centered tiny image">
 				<h2 class="ui icon header">
 					Manage your chaos
 				</h2>
@@ -76,7 +76,7 @@
 <div class="ui vertical segment home-main padding">
   	<div class="ui stackable center aligned grid container">
 			<div class="fourteen wide column">
-			<img src="https://unpkg.com/gitote@1.1.5/img/svg/co-working.svg" class="ui centered small image">
+			<img src="https://cdn.gitote.in/img/svg/co-working.svg" class="ui centered small image">
 			<h1 class="ui icon header">
 				A better way to work together
 			</h1>

+ 1 - 1
templates/misc/ad.tmpl

@@ -1,4 +1,4 @@
 {{if .Owner.ShowAds}}
-    <link rel="stylesheet" href="https://unpkg.com/gitote@1.2.5/css/ads.css">
+    <link rel="stylesheet" href="https://cdn.gitote.in/css/ads.css">
     <script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?serve=CK7D52J7&placement=gitotein" id="_carbonads_js"></script>
 {{end}}

+ 3 - 3
templates/misc/internscert.tmpl

@@ -31,10 +31,10 @@
 			<div class="box b">
 				<div class="align-center">
 					<div class="cert-logo">
-						<p><img style="height:100px; margin-bottom:20px" src="https://unpkg.com/gitote@1.1.9/logo.png"><br>
+						<p><img style="height:100px; margin-bottom:20px" src="https://cdn.gitote.in/logo.png"><br>
                         <span class="cert-slogan">Software version control made simple!</span></p>
 					</div>
-					<div class="cert-signature signature-1"><img src="https://unpkg.com/gitote@1.2.0/img/sign.jpg">
+					<div class="cert-signature signature-1"><img src="https://cdn.gitote.in/img/sign.jpg">
 						<p><b>Yoginth</b><br> <span class="position">Founder and CEO</span></p>
 					</div>
 				</div>
@@ -183,7 +183,7 @@
         {{template "base/head" .}}
         <div class="pages body">
             <div class="ui center">
-                <img class="ui centered medium image" src="https://unpkg.com/gitote@1.2.1/img/svg/certificate.svg">
+                <img class="ui centered medium image" src="https://cdn.gitote.in/img/svg/certificate.svg">
                 <h1>You don't have any certificate yet!</h1>
             </div>
         </div>

+ 1 - 1
templates/misc/soon.tmpl

@@ -1,5 +1,5 @@
 <div class="ui center">
     <h1>We are working on it!</h1>
-    <img class="pages soon" src="https://unpkg.com/gitote@1.1.5/img/svg/wip.svg">
+    <img class="pages soon" src="https://cdn.gitote.in/img/svg/wip.svg">
     <h2>Coming soon!</h2>
 </div>

+ 2 - 2
templates/org/settings/webhook_new.tmpl

@@ -10,9 +10,9 @@
 					{{if .PageIsSettingsHooksNew}}{{.i18n.Tr "repo.settings.add_webhook"}} 🎣{{else}}{{.i18n.Tr "repo.settings.update_webhook"}} 🎣{{end}}
 					<div class="ui right">
 						{{if eq .HookType "gitote"}}
-							<img class="img-13" src="https://unpkg.com/gitote@1.0.1/logo.png">
+							<img class="img-13" src="https://cdn.gitote.in/logo.png">
 						{{else}}
-							<img class="img-13" src="https://unpkg.com/gitote@1.0.1/img/{{.HookType}}.png">
+							<img class="img-13" src="https://cdn.gitote.in/img/{{.HookType}}.png">
 						{{end}}
 					</div>
 				</h4>

+ 1 - 1
templates/pages/security.tmpl

@@ -6,7 +6,7 @@
     <div class="pages body">
         <center>
             <h1>Reporting Vulnerabilities to Gitote</h1>
-            <img class="octopus" src="https://unpkg.com/gitote@1.0.4/img/octopus.png">
+            <img class="octopus" src="https://cdn.gitote.in/img/octopus.png">
         </center>
 
         <p class="pages-small">

+ 1 - 1
templates/repo/forks.tmpl

@@ -8,7 +8,7 @@
 		<div class="ui list">
 			{{if not .Forks}}
 				<div class="ui center dashboard no-activity">
-					<img class="ui avatar small image" src="https://unpkg.com/gitote@1.1.5/img/svg/collection.svg">
+					<img class="ui avatar small image" src="https://cdn.gitote.in/img/svg/collection.svg">
 					<br/>
 					<h2>No Forks</h2>
 				</div>

+ 3 - 3
templates/repo/settings/webhook/list.tmpl

@@ -10,15 +10,15 @@
 						{{range .Types}}
 							{{if eq . "gitote"}}
 								<a class="item logo" href="{{$.BaseLink}}/settings/hooks/gitote/new">
-									<img class="img-12" src="https://unpkg.com/gitote@1.0.1/logo.png">Gitote
+									<img class="img-12" src="https://cdn.gitote.in/logo.png">Gitote
 								</a>
 							{{else if eq . "slack"}}
 								<a class="item logo" href="{{$.BaseLink}}/settings/hooks/slack/new">
-									<img class="img-12" src="https://unpkg.com/gitote@1.0.1/img/slack.png">Slack
+									<img class="img-12" src="https://cdn.gitote.in/img/slack.png">Slack
 								</a>
 							{{else if eq . "discord"}}
 								<a class="item logo" href="{{$.BaseLink}}/settings/hooks/discord/new">
-									<img class="img-12" src="https://unpkg.com/gitote@1.0.1/img/discord.png">Discord
+									<img class="img-12" src="https://cdn.gitote.in/img/discord.png">Discord
 								</a>
 							{{end}}
 						{{end}}

+ 4 - 4
templates/repo/user_cards.tmpl

@@ -6,25 +6,25 @@
 		{{if not .Cards}}
 			{{if .PageIsFollowers}}
 				<div class="ui center dashboard no-activity">
-					<img class="ui avatar small image" src="https://unpkg.com/gitote@1.1.5/img/svg/followers.svg">
+					<img class="ui avatar small image" src="https://cdn.gitote.in/img/svg/followers.svg">
 					<br/>
 					<h2>No Followers</h2>
 				</div>
 			{{else if .PageIsFollowing}}
 				<div class="ui center dashboard no-activity">
-					<img class="ui avatar small image" src="https://unpkg.com/gitote@1.1.5/img/svg/following.svg">
+					<img class="ui avatar small image" src="https://cdn.gitote.in/img/svg/following.svg">
 					<br/>
 					<h2>No Following</h2>
 				</div>
 			{{else if .PageIsWatchers}}
 				<div class="ui center dashboard no-activity">
-					<img class="ui avatar small image" src="https://unpkg.com/gitote@1.1.5/img/svg/watching.svg">
+					<img class="ui avatar small image" src="https://cdn.gitote.in/img/svg/watching.svg">
 					<br/>
 					<h2>No Watchers</h2>
 				</div>
 			{{else if .PageIsStargazers}}
 				<div class="ui center dashboard no-activity">
-					<img class="ui avatar small image" src="https://unpkg.com/gitote@1.1.5/img/svg/taken.svg">
+					<img class="ui avatar small image" src="https://cdn.gitote.in/img/svg/taken.svg">
 					<br/>
 					<h2>No Stars</h2>
 				</div>

+ 2 - 2
templates/status/404.tmpl

@@ -1,7 +1,7 @@
 {{template "base/head" .}}
 <div class="ui container center">
 	<div class="error align">
-		<img height="200px" src="https://unpkg.com/gitote@1.1.0/img/404.svg" alt="404"/>
+		<img height="200px" src="https://cdn.gitote.in/img/404.svg" alt="404"/>
 	</div>
 	<form class="ui form" action="{{AppSubURL}}/explore/repos" method="get">
 		<div class="ui fluid action input">
@@ -17,7 +17,7 @@
 		<a href="http://twitter.com/gitotestatus"><span>@gitotestatus</span></a>
 	</div>
 	<div class="ui center links">
-		<img class="error image" src="https://unpkg.com/gitote@1.0.1/logo.png">
+		<img class="error image" src="https://cdn.gitote.in/logo.png">
 	</div>
 </div>
 {{template "base/footer" .}}

+ 2 - 2
templates/status/500.tmpl

@@ -1,6 +1,6 @@
 {{template "base/head" .}}
 <div class="ui container center error-pages">
-	<p style="margin-top: 100px"><img height="200px" src="https://unpkg.com/gitote@1.0.1/img/500.png" alt="500"/></p>
+	<p style="margin-top: 100px"><img height="200px" src="https://cdn.gitote.in/img/500.png" alt="500"/></p>
 	<h3 style="font-weight:bold">Looks like something went wrong!</h3>
 	<h4>We track these errors automatically, but if the problem persists feel free to contact us. In the meantime, try refreshing.</h4>
 </div>
@@ -12,6 +12,6 @@
 	<a href="http://twitter.com/gitotestatus"><span>@gitotestatus</span></a>
 </div>
 <div class="ui center links">
-	<img class="error image" src="https://unpkg.com/gitote@1.0.1/logo.png">
+	<img class="error image" src="https://cdn.gitote.in/logo.png">
 </div>
 {{template "base/footer" .}}

+ 1 - 1
templates/user/auth/activate.tmpl

@@ -5,7 +5,7 @@
 			<form class="ui form" action="{{AppSubURL}}/user/activate" method="post">
 				{{.CSRFTokenHTML}}
 				<h3 class="ui center">
-					<img height="50px" src="https://unpkg.com/gitote@1.0.1/logo.png">
+					<img height="50px" src="https://cdn.gitote.in/logo.png">
 				</h3>
 				<h2 class="ui center">
 					{{.i18n.Tr "auth.active_your_account"}}

+ 1 - 1
templates/user/auth/forgot_passwd.tmpl

@@ -5,7 +5,7 @@
 			<form class="ui form" action="{{.Link}}" method="post">
 				{{.CSRFTokenHTML}}
 				<h3 class="ui center">
-					<img height="50px" src="https://unpkg.com/gitote@1.0.1/logo.png">
+					<img height="50px" src="https://cdn.gitote.in/logo.png">
 				</h3>
 				<h2 class="ui center">
 					{{.i18n.Tr "auth.forgot_password"}}

+ 1 - 1
templates/user/auth/login.tmpl

@@ -5,7 +5,7 @@
 			<form class="ui form" action="{{.Link}}" method="post">
 				{{.CSRFTokenHTML}}
 				<h3 class="ui center">
-					<img height="50px" src="https://unpkg.com/gitote@1.0.1/logo.png">
+					<img height="50px" src="https://cdn.gitote.in/logo.png">
 				</h3>
 				<h3 class="ui center">
 					{{.i18n.Tr "sign_in"}} to Gitote

+ 1 - 1
templates/user/auth/reset_passwd.tmpl

@@ -6,7 +6,7 @@
 				{{.CSRFTokenHTML}}
 				<input name="code" type="hidden" value="{{.Code}}">
 				<h3 class="ui center">
-					<img height="50px" src="https://unpkg.com/gitote@1.0.1/logo.png">
+					<img height="50px" src="https://cdn.gitote.in/logo.png">
 				</h3>
 				<h2 class="ui center">
 					{{.i18n.Tr "auth.reset_password"}}

+ 1 - 1
templates/user/auth/signup.tmpl

@@ -5,7 +5,7 @@
 			<form class="ui form" action="{{.Link}}" method="post">
 				{{.CSRFTokenHTML}}
 				<h3 class="ui center">
-					<img height="50px" src="https://unpkg.com/gitote@1.0.1/logo.png">
+					<img height="50px" src="https://cdn.gitote.in/logo.png">
 				</h3>
 				<h3 class="ui center">
 					{{.i18n.Tr "sign_up"}}

+ 1 - 1
templates/user/auth/two_factor.tmpl

@@ -5,7 +5,7 @@
 			<form class="ui form" action="{{.Link}}" method="post">
 				{{.CSRFTokenHTML}}
 				<h3 class="ui center">
-					<img height="50px" src="https://unpkg.com/gitote@1.0.1/logo.png">
+					<img height="50px" src="https://cdn.gitote.in/logo.png">
 				</h3>
 				<h3 class="ui center">
 					{{.i18n.Tr "auth.login_two_factor"}}

+ 1 - 1
templates/user/auth/two_factor_recovery_code.tmpl

@@ -5,7 +5,7 @@
 			<form class="ui form" action="{{.Link}}" method="post">
 				{{.CSRFTokenHTML}}
 				<h3 class="ui center">
-					<img height="50px" src="https://unpkg.com/gitote@1.0.1/logo.png">
+					<img height="50px" src="https://cdn.gitote.in/logo.png">
 				</h3>
 				<h3 class="ui center">
 					{{.i18n.Tr "auth.login_two_factor_recovery"}}

+ 4 - 4
templates/user/dashboard/bootcamp.tmpl

@@ -9,7 +9,7 @@
         <div class="column">
             <div class="ui segment bootcamp box">
                 <h2 class="ui left aligned">1</h2>
-                <img src="https://unpkg.com/gitote@1.1.6/img/bootcamp/box.png">
+                <img src="https://cdn.gitote.in/img/bootcamp/box.png">
                 <h4>Set up Git</h4>
                 <p>A quick guide to help you get started with Git.</p>
             </div>
@@ -17,7 +17,7 @@
         <div class="column">
             <div class="ui segment bootcamp box">
                 <h2 class="ui left aligned">2</h2>
-                <img src="https://unpkg.com/gitote@1.1.6/img/bootcamp/folder.png">
+                <img src="https://cdn.gitote.in/img/bootcamp/folder.png">
                 <h4>Create repositories</h4>
                 <p>Repositories are where you'll work and collaborate on projects.</p>
             </div>
@@ -25,7 +25,7 @@
         <div class="column">
             <div class="ui segment bootcamp box">
                 <h2 class="ui left aligned">3</h2>
-                <img src="https://unpkg.com/gitote@1.1.6/img/bootcamp/fork.png">
+                <img src="https://cdn.gitote.in/img/bootcamp/fork.png">
                 <h4>Fork repositories</h4>
                 <p>Forking creates a new, unique project from an existing one.</p>
             </div>
@@ -33,7 +33,7 @@
         <div class="column">
             <div class="ui segment bootcamp box">
                 <h2 class="ui left aligned">4</h2>
-                <img src="https://unpkg.com/gitote@1.1.6/img/bootcamp/together.png">
+                <img src="https://cdn.gitote.in/img/bootcamp/together.png">
                 <h4>Work together</h4>
                 <p>Send pull request, follow friends. Star and watch projects.</p>
             </div>

+ 1 - 1
templates/user/dashboard/dashboard.tmpl

@@ -19,7 +19,7 @@
 				{{end}}
 				<div class="ui stackable grid container home-footer">
 					<div class="seven wide left floated column">
-						<span class="ui header"><img src="https://unpkg.com/gitote@1.0.1/logo.png">© 2018 Gitote</span>
+						<span class="ui header"><img src="https://cdn.gitote.in/logo.png">© 2018 Gitote</span>
 					</div>
 					<div class="three wide column">
 						<div class="ui link list">

+ 1 - 1
templates/user/dashboard/feeds.tmpl

@@ -9,7 +9,7 @@
 		{{end}}
 	{{end}}
 	<div class="ui center dashboard no-activity">
-		<img class="ui avatar small image" src="https://unpkg.com/gitote@1.1.5/img/svg/no_activities.svg">
+		<img class="ui avatar small image" src="https://cdn.gitote.in/img/svg/no_activities.svg">
 		<br/>
 		<h3>No Activities</h3>
 	</div>

+ 2 - 2
templates/user/dashboard/issues.tmpl

@@ -68,13 +68,13 @@
 					{{if not .Issues}}
 						{{if .PageIsIssues}}
 							<div class="ui center dashboard no-activity">
-								<img class="ui avatar small image" src="https://unpkg.com/gitote@1.1.5/img/svg/no_data.svg">
+								<img class="ui avatar small image" src="https://cdn.gitote.in/img/svg/no_data.svg">
 								<br/>
 								<h2>No Issues</h2>
 							</div>
 						{{else if .PageIsPulls}}
 							<div class="ui center dashboard no-activity">
-								<img class="ui avatar small image" src="https://unpkg.com/gitote@1.1.5/img/svg/no_data.svg">
+								<img class="ui avatar small image" src="https://cdn.gitote.in/img/svg/no_data.svg">
 								<br/>
 								<h2>No Pull Requests</h2>
 							</div>

+ 8 - 8
templates/user/profile.tmpl

@@ -71,10 +71,10 @@
 		</div>
 		{{if or .Owner.GitoteDeveloper .Owner.IsBeta .Owner.IsMaker .Owner.IsBugHunter}}
 			<div style="margin-top:1rem" class="ui mini images">
-				{{if .Owner.GitoteDeveloper}}<img class="ui image" src="https://unpkg.com/gitote@1.2.3/img/badges/gitotedeveloper.png">{{end}}
-				{{if .Owner.IsBeta}}<img class="ui image" src="https://unpkg.com/gitote@1.2.3/img/badges/beta.png">{{end}}
-				{{if .Owner.IsMaker}}<img class="ui image" src="https://unpkg.com/gitote@1.2.3/img/badges/maker.png">{{end}}
-				{{if .Owner.IsBugHunter}}<img class="ui image" src="https://unpkg.com/gitote@1.2.3/img/badges/bughunter.png">{{end}}
+				{{if .Owner.GitoteDeveloper}}<img class="ui image" src="https://cdn.gitote.in/img/badges/gitotedeveloper.png">{{end}}
+				{{if .Owner.IsBeta}}<img class="ui image" src="https://cdn.gitote.in/img/badges/beta.png">{{end}}
+				{{if .Owner.IsMaker}}<img class="ui image" src="https://cdn.gitote.in/img/badges/maker.png">{{end}}
+				{{if .Owner.IsBugHunter}}<img class="ui image" src="https://cdn.gitote.in/img/badges/bughunter.png">{{end}}
 			</div>
 		{{end}}
 		{{if and .IsLogged (ne .LoggedUserName .Owner.Name)}}
@@ -208,22 +208,22 @@
 									<div class="ui tiny images">
 										{{if .Owner.GitoteDeveloper}}
 											<a class="poping up" target="_blank" href="/jobs" data-content="Gitote Developer" data-variation="inverted tiny" data-position="left center">
-												<img class="ui image" src="https://unpkg.com/gitote@1.2.3/img/badges/gitotedeveloper.png">
+												<img class="ui image" src="https://cdn.gitote.in/img/badges/gitotedeveloper.png">
 											</a>
 										{{end}}
 										{{if .Owner.IsBeta}}
 											<a class="poping up" target="_blank" href="/jobs" data-content="Beta Member" data-variation="inverted tiny" data-position="left center">
-												<img class="ui image" src="https://unpkg.com/gitote@1.2.3/img/badges/beta.png">
+												<img class="ui image" src="https://cdn.gitote.in/img/badges/beta.png">
 											</a>
 										{{end}}
 										{{if .Owner.IsMaker}}
 											<a class="poping up" target="_blank" href="/jobs" data-content="Maker" data-variation="inverted tiny" data-position="left center">
-												<img class="ui image" src="https://unpkg.com/gitote@1.2.3/img/badges/maker.png">
+												<img class="ui image" src="https://cdn.gitote.in/img/badges/maker.png">
 											</a>
 										{{end}}
 										{{if .Owner.IsBugHunter}}
 											<a class="poping up" target="_blank" href="/jobs" data-content="Bug Hunter" data-variation="inverted tiny" data-position="left center">
-												<img class="ui image" src="https://unpkg.com/gitote@1.2.3/img/badges/bughunter.png">
+												<img class="ui image" src="https://cdn.gitote.in/img/badges/bughunter.png">
 											</a>
 										{{end}}
 									</div>