Skip to content
This repository has been archived by the owner on Feb 15, 2019. It is now read-only.

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
dessalines committed Sep 11, 2014
1 parent b05d54b commit 50ce240
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion resources/bitpieces_practice.sql
Original file line number Diff line number Diff line change
Expand Up @@ -1403,7 +1403,11 @@ when true then '<p class="text-success"><i class="fa fa-check"></i> Verified</p>
when false then '<p class="text-danger"><i class="fa fa-exclamation"></i> Unverified</p>'
end as verified_html,
creators_page_fields.description as description,
CONCAT('https://img.youtube.com/vi/',SUBSTRING(youtube_link, LOCATE('v=', youtube_link)+2),'/maxresdefault.jpg') as youtube_image_url
IF(youtube_link IS NULL or youtube_link = '',
'https://img.youtube.com/vi/05BipfPpUsA/maxresdefault.jpg',
CONCAT('https://img.youtube.com/vi/',SUBSTRING(youtube_link, LOCATE('v=', youtube_link)+2),'/maxresdefault.jpg')
) as youtube_image_url

from creators
left join pieces_owned_value_current_by_creator
on pieces_owned_value_current_by_creator.creators_id = creators.id
Expand Down
4 changes: 2 additions & 2 deletions resources/testweb/discover.html
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ <h2><b><a href="/creators/main/{{creators_name}}"> {{creators_name}} </a></b></h

<h4> {{description}} </h4>

{{verified_html}}
{{{verified_html}}}

<br><br>

Expand All @@ -267,7 +267,7 @@ <h4>{{number_of_backers}}</h4>
<h6>Backers</h6>
</div>
<div class="col-md-4">
<h4>{{reward_yield_current}}/h4>
<h4>{{reward_yield_current}}</h4>
<h6>Reward yield</h6>
</div>
</div>
Expand Down

0 comments on commit 50ce240

Please sign in to comment.