commit
93471c069e
5 changed files with 36 additions and 8 deletions
|
@ -185,6 +185,7 @@ module.exports = (app) => {
|
||||||
res.status(200).render('noChannel');
|
res.status(200).render('noChannel');
|
||||||
} else if (!result.claims) { // channel found, but no claims
|
} else if (!result.claims) { // channel found, but no claims
|
||||||
res.status(200).render('channel', {
|
res.status(200).render('channel', {
|
||||||
|
layout : 'channel',
|
||||||
channelName : result.channelName,
|
channelName : result.channelName,
|
||||||
longChannelId : result.longChannelId,
|
longChannelId : result.longChannelId,
|
||||||
shortChannelId: result.shortChannelId,
|
shortChannelId: result.shortChannelId,
|
||||||
|
@ -198,6 +199,7 @@ module.exports = (app) => {
|
||||||
} else { // channel found, with claims
|
} else { // channel found, with claims
|
||||||
const totalPages = determineTotalPages(result.claims.length);
|
const totalPages = determineTotalPages(result.claims.length);
|
||||||
res.status(200).render('channel', {
|
res.status(200).render('channel', {
|
||||||
|
layout : 'channel',
|
||||||
channelName : result.channelName,
|
channelName : result.channelName,
|
||||||
longChannelId : result.longChannelId,
|
longChannelId : result.longChannelId,
|
||||||
shortChannelId: result.shortChannelId,
|
shortChannelId: result.shortChannelId,
|
||||||
|
|
30
views/layouts/channel.handlebars
Normal file
30
views/layouts/channel.handlebars
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||||
|
<title>Spee.ch</title>
|
||||||
|
<link rel="stylesheet" href="/assets/css/reset.css" type="text/css">
|
||||||
|
<link rel="stylesheet" href="/assets/css/general.css" type="text/css">
|
||||||
|
<link rel="stylesheet" href="/assets/css/mediaQueries.css" type="text/css">
|
||||||
|
<meta name="twitter:card" content="summary" />
|
||||||
|
<meta name="twitter:site" content="@spee_ch" />
|
||||||
|
<meta property="og:title" content="{{this.channelName}} on Spee.ch">
|
||||||
|
<meta property="og:site_name" content="Spee.ch">
|
||||||
|
<meta property="og:type" content="website">
|
||||||
|
<meta property="og:image" content="https://spee.ch/assets/img/Speech_Logo_Main@OG-02.jpg">
|
||||||
|
<meta property="og:url" content="http://spee.ch/{{this.channelName}}:{{this.longChannelId}}">
|
||||||
|
<meta property="og:description" content="View images and videos from {{this.channelName}}">
|
||||||
|
<!--google font-->
|
||||||
|
<link href="https://fonts.googleapis.com/css?family=Roboto:300" rel="stylesheet">
|
||||||
|
<!-- google analytics -->
|
||||||
|
{{ googleAnalytics }}
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<script src="/assets/js/generalFunctions.js"></script>
|
||||||
|
<script src="/assets/js/navBarFunctions.js"></script>
|
||||||
|
{{> navBar}}
|
||||||
|
{{{ body }}}
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -9,13 +9,13 @@
|
||||||
<link rel="stylesheet" href="/assets/css/general.css" type="text/css">
|
<link rel="stylesheet" href="/assets/css/general.css" type="text/css">
|
||||||
<link rel="stylesheet" href="/assets/css/mediaQueries.css" type="text/css">
|
<link rel="stylesheet" href="/assets/css/mediaQueries.css" type="text/css">
|
||||||
<meta name="twitter:card" content="summary" />
|
<meta name="twitter:card" content="summary" />
|
||||||
<meta name="twitter:site" content="@lbryio" />
|
<meta name="twitter:site" content="@spee_ch" />
|
||||||
<meta property="og:title" content="spee.ch">
|
<meta property="og:title" content="Spee.ch">
|
||||||
<meta property="og:site_name" content="spee.ch">
|
<meta property="og:site_name" content="Spee.ch">
|
||||||
<meta property="og:type" content="website">
|
<meta property="og:type" content="website">
|
||||||
<meta property="og:image" content="https://spee.ch/assets/img/Speech_Logo_Main@OG-02.jpg">
|
<meta property="og:image" content="https://spee.ch/assets/img/Speech_Logo_Main@OG-02.jpg">
|
||||||
<meta property="og:url" content="http://spee.ch/">
|
<meta property="og:url" content="http://spee.ch/">
|
||||||
<meta property="og:description" content="Open-source, decentralized image and video hosting.">
|
<meta property="og:description" content="Open-source, decentralized image and video sharing.">
|
||||||
<!--google font-->
|
<!--google font-->
|
||||||
<link href="https://fonts.googleapis.com/css?family=Roboto:300" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css?family=Roboto:300" rel="stylesheet">
|
||||||
<!-- google analytics -->
|
<!-- google analytics -->
|
||||||
|
|
|
@ -20,9 +20,6 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<script src="/assets/js/generalFunctions.js"></script>
|
<script src="/assets/js/generalFunctions.js"></script>
|
||||||
<script src="/assets/js/validationFunctions.js"></script>
|
|
||||||
<script src="/assets/js/authFunctions.js"></script>
|
|
||||||
<script src="/assets/js/loginFunctions.js"></script>
|
|
||||||
<script src="/assets/js/navBarFunctions.js"></script>
|
<script src="/assets/js/navBarFunctions.js"></script>
|
||||||
{{> navBar}}
|
{{> navBar}}
|
||||||
{{{ body }}}
|
{{{ body }}}
|
||||||
|
|
|
@ -40,7 +40,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="/assets/js/authFunctions.js"></script>
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
// show or hide the channel selection tools
|
// show or hide the channel selection tools
|
||||||
function toggleChannel (selectedOption) {
|
function toggleChannel (selectedOption) {
|
||||||
|
|
Loading…
Reference in a new issue