Merge pull request #251 from lbryio/channel-metadata

Channel metadata
This commit is contained in:
Bill Bittner 2017-11-08 15:58:22 -08:00 committed by GitHub
commit 93471c069e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 36 additions and 8 deletions

View file

@ -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,

View 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>

View file

@ -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 -->

View file

@ -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 }}}

View file

@ -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) {