Browse Source

Updated Ads to CDN

Yoginth 7 years ago
parent
commit
6b9f037da0

+ 1 - 1
templates/base/head.tmpl

@@ -53,7 +53,7 @@
 	<script src="https://cdnjs.cloudflare.com/ajax/libs/jscolor/2.0.4/jscolor.min.js"></script>
 	{{end}}
 
-	<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gitote@1.2.2/css/bundle.min.css">
+	<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gitote@1.2.4/css/bundle.min.css">
 	<link rel="stylesheet" href="{{AppSubURL}}/css/gitote.min.css?v={{MD5 AppVer}}">
 	{{if .IsBeta}}
 		<link rel="stylesheet" href="{{AppSubURL}}/css/gitote.{{if .IsBeta}}night{{end}}.min.css?v={{MD5 AppVer}}">

+ 3 - 96
templates/misc/ad.tmpl

@@ -1,97 +1,4 @@
 {{if .Owner.ShowSponsors}}
-<script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?serve=CK7D52J7&placement=gitotein" id="_carbonads_js"></script>
-
-<style>
-#carbonads {
-   display: block;
-   overflow: hidden;
-   margin: 0 auto;
-   padding: 1em;
-   max-width: 380px;
-   border: solid 1px #dcdcdc;
-   border-radius: 3px;
-   font-size: 13px;
-   line-height: 1.5;
-   margin-top: 1.5em;
- }
-
- #carbonads a {
-   color: #575757;
-   text-decoration: none;
- }
-
- #carbonads a:hover {
-   color: #000000;
-   text-decoration: none;
- }
-
- #carbonads span {
-   position: relative;
-   display: block;
-   overflow: hidden;
- }
-
- .carbon-img {
-   float: left;
-   margin-right: 1em;
- }
-
- .carbon-img img {
-   display: block;
- }
-
- .carbon-text {
-   display: block;
-   float: left;
-   max-width: calc(100% - 130px - 1em);
-   text-align: left;
-   color: #fff;
- }
-
- .carbon-poweredby {
-   position: absolute;
-   bottom: 0;
-   left: 143px;
-   display: block;
-   color: hsl(0, 0%, 66%) !important;
-   text-transform: uppercase;
-   letter-spacing: 1px;
-   font-size: 9px;
-   line-height: 1;
- }
-
- @media only screen and (min-width: 320px) and (max-width: 479px) {
-   #carbonads {
-     max-width: 100%;
-     border: 0;
-     border-top: solid 1px hsl(263, 32%, 56%);
-     border-radius: 0;
-     padding-top: 2em;
-   }
- }
- /* Rules to overwrite the position of Carbon Ads on docs pages */
-
- .bs-docs-header #carbonads {
-   position: absolute;
-   top: 0;
-   right: 15px;
- }
-
- @media only screen and (min-width: 480px) and (max-width: 980px) {
-   .bs-docs-header #carbonads {
-     position: relative;
-     right: 0;
-     margin: 4em auto 0;
-   }
- }
-
- @media only screen and (min-width: 320px) and (max-width: 479px) {
-   .bs-docs-header #carbonads {
-     position: relative;
-     right: 0;
-     margin: 2em 0 0;
-   }
- }
-
-</style>
-{{end}}
+    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gitote@1.2.5/css/ads.css">
+    <script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?serve=CK7D52J7&placement=gitotein" id="_carbonads_js"></script>
+{{end}}

+ 0 - 36
templates/misc/sponsor.tmpl

@@ -1,36 +0,0 @@
-{{if .Owner.ShowSponsors}}
-    <h4 class="ui top attached header">
-        <i class="menu-icon octicon">❤️</i> Community Sponsors
-    </h4>
-    <div class="ui attached table segment dashboard sponsor">
-        <center>
-            <img class="ui center image small" src="https://cdn.jsdelivr.net/npm/gitote@1.1.3/img/sponsors/digitalocean.svg">
-            <h5>
-                The all-in-one cloud platform developers & their teams love.
-            </h5>
-            <a href="https://www.digitalocean.com">
-                <h5>Learn more</h5>
-            </a>
-        </center>
-
-        <center>
-            <img class="ui center image small" src="https://cdn.jsdelivr.net/npm/gitote@1.1.1/img/sponsors/browserstack.png">
-            <h5>
-                Most Reliable Mobile App & Browser Testing Platform.
-            </h5>
-            <a href="https://www.browserstack.com">
-                <h5>Learn more</h5>
-            </a>
-        </center>
-
-        <center class="dashboard sponsor divider">
-            <span>
-                We are grateful for wonderful sponsors who help sustain the Gitote Platform.
-            </span>
-            <br/>
-            <a href="{{AppURL}}sponsorship">
-                <div class="sponsor button">Sponsorship Info</div>
-            </a>
-        </center>
-    </div>
-{{end}}

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

@@ -250,7 +250,6 @@
 						</ul>
 					</div>
 				</div>
-				{{template "misc/sponsor" .}}
 				{{template "misc/ad" .}}
 
 				<div class="side-footer">