Commit 2fadf05e authored by yPhil's avatar yPhil

Feed: Comments section link

parent d5bc5875
@font-face {
font-family: 'fontello';
src: url('../font/fontello.eot?11449581');
src: url('../font/fontello.eot?11449581#iefix') format('embedded-opentype'),
url('../font/fontello.woff2?11449581') format('woff2'),
url('../font/fontello.woff?11449581') format('woff'),
url('../font/fontello.ttf?11449581') format('truetype'),
url('../font/fontello.svg?11449581#fontello') format('svg');
src: url('../font/fontello.eot?34806145');
src: url('../font/fontello.eot?34806145#iefix') format('embedded-opentype'),
url('../font/fontello.woff2?34806145') format('woff2'),
url('../font/fontello.woff?34806145') format('woff'),
url('../font/fontello.ttf?34806145') format('truetype'),
url('../font/fontello.svg?34806145#fontello') format('svg');
font-weight: normal;
font-style: normal;
}
......@@ -15,7 +15,7 @@
@media screen and (-webkit-min-device-pixel-ratio:0) {
@font-face {
font-family: 'fontello';
src: url('../font/fontello.svg?11449581#fontello') format('svg');
src: url('../font/fontello.svg?34806145#fontello') format('svg');
}
}
*/
......@@ -62,6 +62,7 @@
.icon-up:before { content: '\e804'; } /* '' */
.icon-pencil:before { content: '\e806'; } /* '' */
.icon-ok:before { content: '\e807'; } /* '' */
.icon-comments:before { content: '\e808'; } /* '' */
.icon-trash-empty:before { content: '\e80a'; } /* '' */
.icon-cancel:before { content: '\e80f'; } /* '' */
.icon-flashlight:before { content: '\e812'; } /* '' */
......
No preview for this file type
......@@ -20,6 +20,8 @@
<glyph glyph-name="ok" unicode="&#xe807;" d="M352-10l-334 333 158 160 176-174 400 401 159-160z" horiz-adv-x="928" />
<glyph glyph-name="comments" unicode="&#xe808;" d="M1179 385q0-126-79-233t-215-170-296-62q-122 0-234 39l2-3-357-107q44 59 71 126t31 106l4 38q-106 120-106 266 0 126 79 233t215 169 295 62 296-62 215-169 79-233z m-250 0q0 29-21 50t-51 21q-29 0-50-21t-21-50q0-30 21-51t50-21q30 0 51 21t21 51z m-250 0q0 29-21 50t-51 21q-29 0-50-21t-21-50q0-30 21-51t50-21q30 0 51 21t21 51z m-250 0q0 29-21 50t-51 21q-29 0-50-21t-21-50q0-30 21-51t50-21q30 0 51 21t21 51z" horiz-adv-x="1179" />
<glyph glyph-name="trash-empty" unicode="&#xe80a;" d="M286 439v-321q0-8-5-13t-13-5h-36q-8 0-13 5t-5 13v321q0 8 5 13t13 5h36q8 0 13-5t5-13z m143 0v-321q0-8-5-13t-13-5h-36q-8 0-13 5t-5 13v321q0 8 5 13t13 5h36q8 0 13-5t5-13z m142 0v-321q0-8-5-13t-12-5h-36q-8 0-13 5t-5 13v321q0 8 5 13t13 5h36q7 0 12-5t5-13z m72-404v529h-500v-529q0-12 4-22t8-15 6-5h464q2 0 6 5t8 15 4 22z m-375 601h250l-27 65q-4 5-9 6h-177q-6-1-10-6z m518-18v-36q0-8-5-13t-13-5h-54v-529q0-46-26-80t-63-34h-464q-37 0-63 33t-27 79v531h-53q-8 0-13 5t-5 13v36q0 8 5 13t13 5h172l39 93q9 21 31 35t44 15h178q23 0 44-15t30-35l39-93h173q8 0 13-5t5-13z" horiz-adv-x="785.7" />
<glyph glyph-name="cancel" unicode="&#xe80f;" d="M0 90q0 36 26 62l195 195-195 196q-26 25-26 61t26 61 61 25 61-25l196-196 195 196q25 25 61 25t61-25 25-61-25-61l-195-196 195-195q25-26 25-62t-25-61q-25-25-61-25t-61 25l-195 195-196-195q-25-25-61-25t-61 25q-26 26-26 61z" horiz-adv-x="686.5" />
......
No preview for this file type
......@@ -270,6 +270,8 @@ MOB.feed = {
}).done(function(data) {
// console.log('DATA:', data);
$feedLink.text(data.feedTitle || feedUrl)
.attr('href', data.feedLink)
.attr('title', (data.feedTitle || MOB.tr('Untitled')) + ' (' + feedUrl + ')');
......@@ -334,6 +336,24 @@ MOB.feed = {
var mediaUrl;
var $commentsLink,
$commentsIcon;
if (item.comments) {
console.log('itemCommentsLink!: ', item.comments);
$commentsLink = $('<a>')
.attr('href', item.comments);
$commentsIcon = $('<i>')
.attr('class', 'media icon-comments')
.css('float', 'right')
.appendTo($commentsLink);
}
var $tempDom = $('<output>').append($description);
if (typeof $tempDom.find('span a').attr('href') !== 'undefined') {
......@@ -361,21 +381,25 @@ MOB.feed = {
}
}
var summary = $('<p>').append(item.summary).text();
var summary = $('<p>')
.append(item.summary)
.text();
var $feedItem = $('<li class="feedItem">')
.attr('title', summary.trim());
var $feedItem = $('<li class="feedItem">').attr('title', summary.trim());
var $itemDiv = $('<div class="feedItem">');
if (typeof $commentsLink !== 'undefined') {
$commentsLink.appendTo($itemDiv);
}
var $itemLink = $('<a>')
.attr('target', '_blank')
.attr('class', 'ui-helper-clearfix')
.attr('href', item.link)
.append(item.title);
var $itemSpan = $('<span>')
.attr('class', 'truncate ui-helper-clearfix')
.text(summary.trim());
if (index % 2 === 0) {
$feedItem.addClass('mobFeedEven');
}
......@@ -411,19 +435,16 @@ MOB.feed = {
$itemMedia.appendTo($mediaLink);
// $itemMedia = $('<img>').attr('src', mediaUrl)
// .appendTo($mediaLink);
if (feedType == 'photo')
$itemMedia.addClass('full');
if (feedType !== 'text')
$mediaLink.appendTo($itemDiv);
}
// $itemSpan.appendTo($itemLink);
$itemLink.appendTo($itemDiv);
// $itemSpan.appendTo($itemDiv);
$itemDiv.appendTo($feedItem);
$feedItem.appendTo($feedBody);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment