aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorThomas Willingham <beardyunixer@beardyunixer.com>2014-06-22 18:00:23 +0100
committerThomas Willingham <beardyunixer@beardyunixer.com>2014-06-22 18:00:23 +0100
commit388872949ed0de4cf036e546fafb3f4b4bd04fee (patch)
tree2fcefc5c8f2398166b8e7003033fe160cb3325fc /view
parentb47ff712deafdb8617599b0af4403b9563c9be93 (diff)
parent301c7cdb89b13c4fc7c502795f121e13c1f9441d (diff)
downloadvolse-hubzilla-388872949ed0de4cf036e546fafb3f4b4bd04fee.tar.gz
volse-hubzilla-388872949ed0de4cf036e546fafb3f4b4bd04fee.tar.bz2
volse-hubzilla-388872949ed0de4cf036e546fafb3f4b4bd04fee.zip
Merge branch 'master' of https://github.com/friendica/red
Diffstat (limited to 'view')
-rw-r--r--view/js/main.js39
-rw-r--r--view/js/mod_settings.js142
-rw-r--r--view/theme/redbasic/css/style.css19
-rwxr-xr-xview/tpl/nav.tpl4
-rwxr-xr-xview/tpl/photo_albums.tpl4
-rwxr-xr-xview/tpl/photo_view.tpl36
-rwxr-xr-xview/tpl/suggest_friends.tpl4
7 files changed, 119 insertions, 129 deletions
diff --git a/view/js/main.js b/view/js/main.js
index ac457f5ea..f43ae4d1b 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -112,8 +112,9 @@
return true;
}
-
-
+ function viewsrc(id) {
+ $.colorbox({href: 'viewsrc/' + id });
+ }
function qCommentInsert(obj,id) {
var tmpStr = $("#comment-edit-text-" + id).val();
@@ -196,17 +197,6 @@
msie = false; // $.browser.msie ;
- /* setup tooltips *//*
- $("a,.tt").each(function(){
- var e = $(this);
- var pos="bottom";
- if (e.hasClass("tttop")) pos="top";
- if (e.hasClass("ttbottom")) pos="bottom";
- if (e.hasClass("ttleft")) pos="left";
- if (e.hasClass("ttright")) pos="right";
- e.tipTip({defaultPosition: pos, edgeOffset: 8});
- });*/
-
var e = document.getElementById('content-complete');
if(e)
pageHasMoreContent = false;
@@ -600,7 +590,7 @@ function updateConvItems(mode,data) {
var update_url;
- if(typeof buildCmd == 'function') {
+// if(typeof buildCmd == 'function') {
if(scroll_next) {
bParam_page = next_page;
page_load = true;
@@ -609,12 +599,12 @@ function updateConvItems(mode,data) {
bParam_page = 1;
}
update_url = buildCmd();
- }
- else {
- page_load = false;
- var udargs = ((page_load) ? '/load' : '');
- update_url = 'update_' + src + udargs + '&p=' + profile_uid + '&page=' + profile_page + '&msie=' + ((msie) ? 1 : 0);
- }
+// }
+// else {
+// page_load = false;
+// var udargs = ((page_load) ? '/load' : '');
+// update_url = 'update_' + src + udargs + '&p=' + profile_uid + '&page=' + profile_page + '&msie=' + ((msie) ? 1 : 0);
+// }
if(page_load)
$("#page-spinner").spin('small');
@@ -648,15 +638,6 @@ function updateConvItems(mode,data) {
}
-
- function imgbright(node) {
-// $(node).removeClass("drophide").addClass("drop");
- }
-
- function imgdull(node) {
-// $(node).removeClass("drop").addClass("drophide");
- }
-
function notify_popup_loader(notifyType) {
/* notifications template */
diff --git a/view/js/mod_settings.js b/view/js/mod_settings.js
index fa788280d..4daa7f704 100644
--- a/view/js/mod_settings.js
+++ b/view/js/mod_settings.js
@@ -25,100 +25,98 @@ $(document).ready(function() {
});
function channel_privacy_macro(n) {
- if(n == 0) {
- $('#id_view_stream option').eq(0).attr('selected','selected');
- $('#id_view_profile option').eq(0).attr('selected','selected');
- $('#id_view_photos option').eq(0).attr('selected','selected');
- $('#id_view_contacts option').eq(0).attr('selected','selected');
- $('#id_view_storage option').eq(0).attr('selected','selected');
- $('#id_view_pages option').eq(0).attr('selected','selected');
- $('#id_send_stream option').eq(0).attr('selected','selected');
- $('#id_post_wall option').eq(0).attr('selected','selected');
- $('#id_post_comments option').eq(0).attr('selected','selected');
- $('#id_post_mail option').eq(0).attr('selected','selected');
- $('#id_post_photos option').eq(0).attr('selected','selected');
- $('#id_tag_deliver option').eq(0).attr('selected','selected');
- $('#id_chat option').eq(0).attr('selected','selected');
- $('#id_write_storage option').eq(0).attr('selected','selected');
- $('#id_write_pages option').eq(0).attr('selected','selected');
- $('#id_delegate option').eq(0).attr('selected','selected');
+ if(n == 0) {
+ $('#id_view_stream option').eq(0).attr('selected','selected');
+ $('#id_view_profile option').eq(0).attr('selected','selected');
+ $('#id_view_photos option').eq(0).attr('selected','selected');
+ $('#id_view_contacts option').eq(0).attr('selected','selected');
+ $('#id_view_storage option').eq(0).attr('selected','selected');
+ $('#id_view_pages option').eq(0).attr('selected','selected');
+ $('#id_send_stream option').eq(0).attr('selected','selected');
+ $('#id_post_wall option').eq(0).attr('selected','selected');
+ $('#id_post_comments option').eq(0).attr('selected','selected');
+ $('#id_post_mail option').eq(0).attr('selected','selected');
+ $('#id_post_photos option').eq(0).attr('selected','selected');
+ $('#id_tag_deliver option').eq(0).attr('selected','selected');
+ $('#id_chat option').eq(0).attr('selected','selected');
+ $('#id_write_storage option').eq(0).attr('selected','selected');
+ $('#id_write_pages option').eq(0).attr('selected','selected');
+ $('#id_delegate option').eq(0).attr('selected','selected');
$('#id_republish option').eq(0).attr('selected','selected');
$('#id_bookmark option').eq(0).attr('selected','selected');
$('#id_profile_in_directory_onoff .off').removeClass('hidden');
$('#id_profile_in_directory_onoff .on').addClass('hidden');
$('#id_profile_in_directory').val(0);
}
- if(n == 1) {
- $('#id_view_stream option').eq(1).attr('selected','selected');
- $('#id_view_profile option').eq(1).attr('selected','selected');
- $('#id_view_photos option').eq(1).attr('selected','selected');
- $('#id_view_contacts option').eq(1).attr('selected','selected');
- $('#id_view_storage option').eq(1).attr('selected','selected');
- $('#id_view_pages option').eq(1).attr('selected','selected');
- $('#id_send_stream option').eq(1).attr('selected','selected');
- $('#id_post_wall option').eq(1).attr('selected','selected');
- $('#id_post_comments option').eq(1).attr('selected','selected');
- $('#id_post_mail option').eq(1).attr('selected','selected');
- $('#id_post_photos option').eq(1).attr('selected','selected');
- $('#id_tag_deliver option').eq(1).attr('selected','selected');
- $('#id_chat option').eq(1).attr('selected','selected');
- $('#id_write_storage option').eq(1).attr('selected','selected');
- $('#id_write_pages option').eq(1).attr('selected','selected');
- $('#id_delegate option').eq(0).attr('selected','selected');
+ if(n == 1) {
+ $('#id_view_stream option').eq(1).attr('selected','selected');
+ $('#id_view_profile option').eq(1).attr('selected','selected');
+ $('#id_view_photos option').eq(1).attr('selected','selected');
+ $('#id_view_contacts option').eq(1).attr('selected','selected');
+ $('#id_view_storage option').eq(1).attr('selected','selected');
+ $('#id_view_pages option').eq(1).attr('selected','selected');
+ $('#id_send_stream option').eq(1).attr('selected','selected');
+ $('#id_post_wall option').eq(1).attr('selected','selected');
+ $('#id_post_comments option').eq(1).attr('selected','selected');
+ $('#id_post_mail option').eq(1).attr('selected','selected');
+ $('#id_post_photos option').eq(1).attr('selected','selected');
+ $('#id_tag_deliver option').eq(1).attr('selected','selected');
+ $('#id_chat option').eq(1).attr('selected','selected');
+ $('#id_write_storage option').eq(1).attr('selected','selected');
+ $('#id_write_pages option').eq(1).attr('selected','selected');
+ $('#id_delegate option').eq(0).attr('selected','selected');
$('#id_republish option').eq(0).attr('selected','selected');
$('#id_bookmark option').eq(1).attr('selected','selected');
$('#id_profile_in_directory_onoff .off').removeClass('hidden');
$('#id_profile_in_directory_onoff .on').addClass('hidden');
$('#id_profile_in_directory').val(0);
}
- if(n == 2) {
- $('#id_view_stream option').eq(6).attr('selected','selected');
- $('#id_view_profile option').eq(6).attr('selected','selected');
- $('#id_view_photos option').eq(6).attr('selected','selected');
- $('#id_view_contacts option').eq(6).attr('selected','selected');
- $('#id_view_storage option').eq(6).attr('selected','selected');
- $('#id_view_pages option').eq(6).attr('selected','selected');
- $('#id_send_stream option').eq(2).attr('selected','selected');
- $('#id_post_wall option').eq(1).attr('selected','selected');
- $('#id_post_comments option').eq(2).attr('selected','selected');
- $('#id_post_mail option').eq(1).attr('selected','selected');
- $('#id_post_photos option').eq(0).attr('selected','selected');
- $('#id_tag_deliver option').eq(1).attr('selected','selected');
- $('#id_chat option').eq(1).attr('selected','selected');
- $('#id_write_storage option').eq(0).attr('selected','selected');
- $('#id_write_pages option').eq(0).attr('selected','selected');
- $('#id_delegate option').eq(0).attr('selected','selected');
+ if(n == 2) {
+ $('#id_view_stream option').eq(7).attr('selected','selected');
+ $('#id_view_profile option').eq(7).attr('selected','selected');
+ $('#id_view_photos option').eq(7).attr('selected','selected');
+ $('#id_view_contacts option').eq(7).attr('selected','selected');
+ $('#id_view_storage option').eq(7).attr('selected','selected');
+ $('#id_view_pages option').eq(7).attr('selected','selected');
+ $('#id_send_stream option').eq(2).attr('selected','selected');
+ $('#id_post_wall option').eq(1).attr('selected','selected');
+ $('#id_post_comments option').eq(2).attr('selected','selected');
+ $('#id_post_mail option').eq(1).attr('selected','selected');
+ $('#id_post_photos option').eq(0).attr('selected','selected');
+ $('#id_tag_deliver option').eq(1).attr('selected','selected');
+ $('#id_chat option').eq(1).attr('selected','selected');
+ $('#id_write_storage option').eq(0).attr('selected','selected');
+ $('#id_write_pages option').eq(0).attr('selected','selected');
+ $('#id_delegate option').eq(0).attr('selected','selected');
$('#id_republish option').eq(1).attr('selected','selected');
$('#id_bookmark option').eq(1).attr('selected','selected');
$('#id_profile_in_directory_onoff .on').removeClass('hidden');
$('#id_profile_in_directory_onoff .off').addClass('hidden');
$('#id_profile_in_directory').val(1);
}
- if(n == 3) {
- $('#id_view_stream option').eq(6).attr('selected','selected');
- $('#id_view_profile option').eq(6).attr('selected','selected');
- $('#id_view_photos option').eq(6).attr('selected','selected');
- $('#id_view_contacts option').eq(6).attr('selected','selected');
- $('#id_view_storage option').eq(6).attr('selected','selected');
- $('#id_view_pages option').eq(6).attr('selected','selected');
- $('#id_send_stream option').eq(4).attr('selected','selected');
- $('#id_post_wall option').eq(4).attr('selected','selected');
- $('#id_post_comments option').eq(4).attr('selected','selected');
- $('#id_post_mail option').eq(4).attr('selected','selected');
- $('#id_post_photos option').eq(2).attr('selected','selected');
- $('#id_tag_deliver option').eq(1).attr('selected','selected');
- $('#id_chat option').eq(4).attr('selected','selected');
- $('#id_write_storage option').eq(2).attr('selected','selected');
- $('#id_write_pages option').eq(2).attr('selected','selected');
- $('#id_delegate option').eq(0).attr('selected','selected');
- $('#id_republish option').eq(4).attr('selected','selected');
- $('#id_bookmark option').eq(4).attr('selected','selected');
+ if(n == 3) {
+ $('#id_view_stream option').eq(7).attr('selected','selected');
+ $('#id_view_profile option').eq(7).attr('selected','selected');
+ $('#id_view_photos option').eq(7).attr('selected','selected');
+ $('#id_view_contacts option').eq(7).attr('selected','selected');
+ $('#id_view_storage option').eq(7).attr('selected','selected');
+ $('#id_view_pages option').eq(7).attr('selected','selected');
+ $('#id_send_stream option').eq(5).attr('selected','selected');
+ $('#id_post_wall option').eq(5).attr('selected','selected');
+ $('#id_post_comments option').eq(5).attr('selected','selected');
+ $('#id_post_mail option').eq(5).attr('selected','selected');
+ $('#id_post_photos option').eq(2).attr('selected','selected');
+ $('#id_tag_deliver option').eq(1).attr('selected','selected');
+ $('#id_chat option').eq(5).attr('selected','selected');
+ $('#id_write_storage option').eq(2).attr('selected','selected');
+ $('#id_write_pages option').eq(2).attr('selected','selected');
+ $('#id_delegate option').eq(0).attr('selected','selected');
+ $('#id_republish option').eq(5).attr('selected','selected');
+ $('#id_bookmark option').eq(5).attr('selected','selected');
$('#id_profile_in_directory_onoff .on').removeClass('hidden');
$('#id_profile_in_directory_onoff .off').addClass('hidden');
$('#id_profile_in_directory').val(1);
}
-
-
}
diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css
index 06aa08030..59586fb59 100644
--- a/view/theme/redbasic/css/style.css
+++ b/view/theme/redbasic/css/style.css
@@ -1032,12 +1032,9 @@ aside li {
.profile-match-photo {
float: left;
- text-align: center;
- width: 120px;
}
.profile-match-name {
- text-align: center;
width: 120px;
height: 1.5em;
overflow: hidden !important;
@@ -1058,12 +1055,18 @@ aside li {
}
.profile-match-wrapper {
- float: left;
- padding: 10px;
- width: 120px;
- min-height: 120px;
- scroll: auto;
+ float: left;
+ width: 120px;
+ height: 150px;
+ padding: 10px;
+ margin: 8px 10px 0 0;
+ border-top: 1px solid #eee;
+ border-left: 2px solid #eee;
}
+.profile-match-ignore {
+ float: right;
+}
+
#profile-match-wrapper-end {
clear: both;
}
diff --git a/view/tpl/nav.tpl b/view/tpl/nav.tpl
index dd3f67f45..fa51526d2 100755
--- a/view/tpl/nav.tpl
+++ b/view/tpl/nav.tpl
@@ -74,7 +74,7 @@
</li>
<li class="{{$sel.home}} visible-xs">
<a class="{{$nav.home.2}}" href="{{$nav.home.0}}" title="{{$nav.home.3}}" ><i class="icon-home"></i></a>
- <span class="home-update badge"rel="#nav-home-menu"></span>
+ <span class="home-update badge" rel="#nav-home-menu"></span>
</li>
{{/if}}
@@ -173,5 +173,3 @@
</ul>
</div>
</div>
-
-
diff --git a/view/tpl/photo_albums.tpl b/view/tpl/photo_albums.tpl
index e83eefb39..7ff4a8cc0 100755
--- a/view/tpl/photo_albums.tpl
+++ b/view/tpl/photo_albums.tpl
@@ -3,7 +3,9 @@
{{if $albums}}
<ul>
{{foreach $albums as $al}}
-<li><a href="{{$baseurl}}/photos/{{$nick}}/album/{{$al.bin2hex}}">{{$al.text}}</a></li>
+{{if $al.text}}
+<li><a href="{{$baseurl}}/photos/{{$nick}}/album/{{$al.bin2hex}}">{{$al.text}}</a> ({{$al.total}})</li>
+{{/if}}
{{/foreach}}
</ul>
{{/if}}
diff --git a/view/tpl/photo_view.tpl b/view/tpl/photo_view.tpl
index b34f3fcf5..0c16eb362 100755
--- a/view/tpl/photo_view.tpl
+++ b/view/tpl/photo_view.tpl
@@ -5,11 +5,11 @@
{{if $tools}}
<a id="photo-toprofile-link" href="{{$tools.profile.0}}">{{$tools.profile.1}}</a>
{{/if}}
-{{if $lock}} | <i class="lockview icon-lock" title="{{$lock}}" onclick="lockview(event,'photo/{{$id}}');" ></i> {{/if}}
+{{if $lock}} | <i class="lockview icon-lock" title="{{$lock}}" onclick="lockview(event,'photo/{{$id}}');"></i> {{/if}}
</div>
{{if $prevlink}}<div id="photo-prev-link"><a href="{{$prevlink.0}}"><i class="icon-backward photo-icons"></i></div>{{/if}}
-<div id="photo-photo"><a href="{{$photo.href}}" title="{{$photo.title}}" onclick="$.colorbox({href: '{{$photo.href}}'}); return false;" ><img style="max-width: 100%;" src="{{$photo.src}}" /></a></div>
+<div id="photo-photo"><a href="{{$photo.href}}" title="{{$photo.title}}" onclick="$.colorbox({href: '{{$photo.href}}'}); return false;"><img style="max-width: 100%;" src="{{$photo.src}}"></a></div>
{{if $nextlink}}<div id="photo-next-link"><a href="{{$nextlink.0}}"><i class="icon-forward photo-icons"></i></a></div>{{/if}}
<div id="photo-photo-end"></div>
<div id="photo-caption">{{$desc}}</div>
@@ -24,22 +24,30 @@
{{if $edit}}
<div id="photo-edit-edit-wrapper" class="fakelink" onclick="openClose('photo-edit-edit');">{{$edit.edit}}</div>
<div id="photo-edit-edit" style="display: none;">
-<form action="photos/{{$edit.nickname}}/{{$edit.resource_id}}" method="post" id="photo_edit_form" >
+<form action="photos/{{$edit.nickname}}/{{$edit.resource_id}}" method="post" id="photo_edit_form">
- <input type="hidden" name="item_id" value="{{$edit.item_id}}" />
+ <input type="hidden" name="item_id" value="{{$edit.item_id}}">
<label id="photo-edit-albumname-label" for="photo-edit-albumname">{{$edit.newalbum}}</label>
- <input id="photo-edit-albumname" type="text" size="32" name="albname" value="{{$edit.album}}" />
-
+ <input id="photo-edit-albumname" type="text" size="32" name="albname" value="{{$edit.album}}" list="dl-albums">
+{{if $edit.albums}}
+ <datalist id="dl-albums">
+ {{foreach $edit.albums as $al}}
+ {{if $al.text}}
+ <option value="{{$al.text}}">
+ {{/if}}
+ {{/foreach}}
+ </datalist>
+{{/if}}
<div id="photo-edit-albumname-end"></div>
<label id="photo-edit-caption-label" for="photo-edit-caption">{{$edit.capt_label}}</label>
- <input id="photo-edit-caption" type="text" size="84" name="desc" value="{{$edit.caption}}" />
+ <input id="photo-edit-caption" type="text" size="84" name="desc" value="{{$edit.caption}}">
<div id="photo-edit-caption-end"></div>
<label id="photo-edit-tags-label" for="photo-edit-newtag" >{{$edit.tag_label}}</label>
- <input name="newtag" id="photo-edit-newtag" size="84" title="{{$edit.help_tags}}" type="text" />
+ <input name="newtag" id="photo-edit-newtag" size="84" title="{{$edit.help_tags}}" type="text">
<div id="photo-edit-tags-end"></div>
<div id="photo-edit-rotate-wrapper">
@@ -47,13 +55,13 @@
{{$edit.rotatecw}}<br>
{{$edit.rotateccw}}
</div>
- <input type="radio" name="rotate" value="1" /><br>
- <input type="radio" name="rotate" value="2" />
+ <input type="radio" name="rotate" value="1"><br>
+ <input type="radio" name="rotate" value="2">
</div>
<div id="photo-edit-rotate-end"></div>
- <div id="settings-default-perms" class="settings-default-perms" >
- <span id="jot-perms-icon" class="{{$edit.lockstate}}" ></span>
+ <div id="settings-default-perms" class="settings-default-perms">
+ <span id="jot-perms-icon" class="{{$edit.lockstate}}"></span>
<button class="btn btn-default btn-xs" data-toggle="modal" data-target="#aclModal" onclick="return false;">{{$edit.permissions}}</button>
{{$edit.aclselect}}
<div id="settings-default-perms-menu-end"></div>
@@ -61,8 +69,8 @@
<br/>
<div id="settings-default-perms-end"></div>
- <input id="photo-edit-submit-button" type="submit" name="submit" value="{{$edit.submit}}" />
- <input id="photo-edit-delete-button" type="submit" name="delete" value="{{$edit.delete}}" onclick="return confirmDelete()"; />
+ <input id="photo-edit-submit-button" type="submit" name="submit" value="{{$edit.submit}}">
+ <input id="photo-edit-delete-button" type="submit" name="delete" value="{{$edit.delete}}" onclick="return confirmDelete();">
<div id="photo-edit-end"></div>
</form>
diff --git a/view/tpl/suggest_friends.tpl b/view/tpl/suggest_friends.tpl
index 6cf8f7ba8..2008193f9 100755
--- a/view/tpl/suggest_friends.tpl
+++ b/view/tpl/suggest_friends.tpl
@@ -1,16 +1,16 @@
<div class="profile-match-wrapper">
- <a href="{{$entry.ignlnk}}" title="{{$entry.ignore}}" class="profile-match-ignore" onclick="return confirmDelete();" ><i class="icon-remove drop-icons"></i></a>
<div class="profile-match-photo">
<a href="{{$entry.url}}">
<img src="{{$entry.photo}}" alt="{{$entry.name}}" width="80" height="80" title="{{$entry.name}} [{{$entry.profile}}]" />
</a>
</div>
+ <a href="{{$entry.ignlnk}}" title="{{$entry.ignore}}" class="profile-match-ignore" onclick="return confirmDelete();" ><i class="icon-remove drop-icons btn btn-default"></i></a>
<div class="profile-match-break"></div>
<div class="profile-match-name">
<a href="{{$entry.url}}" title="{{$entry.name}}">{{$entry.name}}</a>
</div>
<div class="profile-match-end"></div>
{{if $entry.connlnk}}
- <div class="profile-match-connect"><a href="{{$entry.connlnk}}" title="{{$entry.conntxt}}"><i class="icon-plus connect-icon"></i> {{$entry.conntxt}}</a></div>
+ <div class="profile-match-connect btn btn-default"><a href="{{$entry.connlnk}}" title="{{$entry.conntxt}}"><i class="icon-plus connect-icon"></i> {{$entry.conntxt}}</a></div>
{{/if}}
</div>