From c4c1c37bd3388cf2be3f57bc29492e73644bc4ec Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 22 Jun 2014 22:16:26 -0700 Subject: profile likes --- view/js/main.js | 6 ++++++ view/theme/redbasic/css/style.css | 8 ++++++++ view/tpl/profile_advanced.tpl | 20 ++++++++++++++++++++ 3 files changed, 34 insertions(+) (limited to 'view') diff --git a/view/js/main.js b/view/js/main.js index f43ae4d1b..cb492b9de 100644 --- a/view/js/main.js +++ b/view/js/main.js @@ -695,6 +695,12 @@ function updateConvItems(mode,data) { liking = 1; } + function doprofilelike(ident,verb) { + $.get('like/' + ident + '?verb=' + verb, function() { window.location.href=window.location.href; }); + } + + + function dosubthread(ident) { unpause(); $('#like-rotator-' + ident.toString()).spin('tiny'); diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index 59586fb59..589a48192 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -372,6 +372,14 @@ aside li { margin-top: 10px; } +#profile-like { + margin-left: 15px; +} + +#profile-like-wrapper { + margin-bottom: 15px; +} + .fn { padding: 0px 0px 5px 0px; diff --git a/view/tpl/profile_advanced.tpl b/view/tpl/profile_advanced.tpl index f25608430..0faa54637 100755 --- a/view/tpl/profile_advanced.tpl +++ b/view/tpl/profile_advanced.tpl @@ -1,6 +1,26 @@

{{$title}}

+{{if $profile.canlike || $profile.like_count}} +
+{{if $profile.canlike}} + +{{/if}} + + +{{if $profile.like_count}} +
+ +{{if $profile.likers}} + +{{/if}} +
+{{/if}} +
+{{/if}} +
{{$profile.fullname.0}}
{{$profile.fullname.1}}
-- cgit v1.2.3