New template for shared content instead of hardcoded stuff in source
This commit is contained in:
parent
bd01a1c63a
commit
e2e32eecac
5 changed files with 56 additions and 24 deletions
13
view/templates/shared-content.tpl
Normal file
13
view/templates/shared-content.tpl
Normal file
|
@ -0,0 +1,13 @@
|
|||
<div class="shared-wrapper">
|
||||
<div class="shared_header">
|
||||
{{if $avatar}}
|
||||
<a href="{{$profile}}" target="_blank" class="shared-userinfo">
|
||||
<img src="{{$avatar}}" height="32" width="32">
|
||||
</a>
|
||||
{{/if}}
|
||||
{{*<span><a href="{{$profile}}" target="_blank" class="shared-wall-item-name">{{$author}}</a> wrote the following <a href="{{$link}}" target="_blank">post</a>{{$reldate}}:</span>*}}
|
||||
<div><a href="{{$profile}}" target="_blank" class="shared-wall-item-name"><span class="shared-author">{{$author}}</span></a></div>
|
||||
<div class="shared-wall-item-ago"><small><a href="{{$link}}" target="_blank"><span class="shared-time">{{$posted}}</a></a></small></div>
|
||||
</div>
|
||||
<blockquote class="shared_content">{{$content}}</blockquote>
|
||||
<div>
|
|
@ -1112,7 +1112,8 @@ input#dfrn-url {
|
|||
left: 65px;
|
||||
}
|
||||
|
||||
.wall-item-ago {
|
||||
.wall-item-ago,
|
||||
.shared-time {
|
||||
color: #888888;
|
||||
font-size: 0.8em;
|
||||
}
|
||||
|
@ -1201,7 +1202,8 @@ input#dfrn-url {
|
|||
.wall-item-wrapper-end {
|
||||
clear: both;
|
||||
}
|
||||
.wall-item-name-link {
|
||||
.wall-item-name-link,
|
||||
.shared-author {
|
||||
font-weight: bold;
|
||||
text-decoration: none;
|
||||
color: #3172BD;
|
||||
|
|
|
@ -1242,7 +1242,8 @@ section #jotOpen {
|
|||
.media-heading {
|
||||
margin: 0 0 5px;
|
||||
}
|
||||
.wall-item-name {
|
||||
.wall-item-name,
|
||||
.shared-author {
|
||||
font-size: 15px;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
@ -1572,6 +1573,7 @@ ul.dropdown-menu li:hover {
|
|||
|
||||
/* Media Classes */
|
||||
.media .time,
|
||||
.media .shared-time,
|
||||
.media .location,
|
||||
.media .location a {
|
||||
font-size: 11px;
|
||||
|
|
|
@ -1426,6 +1426,15 @@ section.minimal {
|
|||
font-size: 12px;
|
||||
}
|
||||
|
||||
.shared-time {
|
||||
color: #999;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.shared_header {
|
||||
line-height: 14px;
|
||||
}
|
||||
|
||||
.wall-item-network {
|
||||
color: #999;
|
||||
font-size: 12px;
|
||||
|
@ -1504,7 +1513,8 @@ section.minimal {
|
|||
color: #36c;
|
||||
}
|
||||
|
||||
.wall-item-container .wall-item-name {
|
||||
.wall-item-container .wall-item-name,
|
||||
.wall-item-container .shared-author {
|
||||
color: black;
|
||||
font-weight: bold;
|
||||
-webkit-transition: all 0.2s ease-in-out;
|
||||
|
@ -1515,7 +1525,9 @@ section.minimal {
|
|||
}
|
||||
|
||||
.toplevel_item:hover .wall-item-name,
|
||||
.wall-item-container:hover .wall-item-name {
|
||||
.wall-item-container:hover .wall-item-name,
|
||||
.toplevel_item:hover .shared-author,
|
||||
.wall-item-container:hover .shared-author {
|
||||
color: #36c;
|
||||
font-weight: bold;
|
||||
-webkit-transition: all 0.2s ease-in-out;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue