incremental improvements
This commit is contained in:
parent
98c86d46d4
commit
659ae4ed04
28 changed files with 401 additions and 94 deletions
98
view/theme/frost-mobile/admin_users.tpl
Normal file
98
view/theme/frost-mobile/admin_users.tpl
Normal file
|
@ -0,0 +1,98 @@
|
|||
<script>
|
||||
function confirm_delete(uname){
|
||||
return confirm( "$confirm_delete".format(uname));
|
||||
}
|
||||
function confirm_delete_multi(){
|
||||
return confirm("$confirm_delete_multi");
|
||||
}
|
||||
function selectall(cls){
|
||||
$j("."+cls).attr('checked','checked');
|
||||
return false;
|
||||
}
|
||||
</script>
|
||||
<div id='adminpage'>
|
||||
<h1>$title - $page</h1>
|
||||
|
||||
<form action="$baseurl/admin/users" method="post">
|
||||
<input type='hidden' name='form_security_token' value='$form_security_token'>
|
||||
|
||||
<h3>$h_pending</h3>
|
||||
{{ if $pending }}
|
||||
<table id='pending'>
|
||||
<thead>
|
||||
<tr>
|
||||
{{ for $th_pending as $th }}<th>$th</th>{{ endfor }}
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{ for $pending as $u }}
|
||||
<tr>
|
||||
<td class="created">$u.created</td>
|
||||
<td class="name">$u.name</td>
|
||||
<td class="email">$u.email</td>
|
||||
<td class="checkbox"><input type="checkbox" class="pending_ckbx" id="id_pending_$u.hash" name="pending[]" value="$u.hash" /></td>
|
||||
<td class="tools">
|
||||
<a href="$baseurl/regmod/allow/$u.hash" title='$approve'><span class='tool like'></span></a>
|
||||
<a href="$baseurl/regmod/deny/$u.hash" title='$deny'><span class='tool dislike'></span></a>
|
||||
</td>
|
||||
</tr>
|
||||
{{ endfor }}
|
||||
</tbody>
|
||||
</table>
|
||||
<div class='selectall'><a href='#' onclick="return selectall('pending_ckbx');">$select_all</a></div>
|
||||
<div class="submit"><input type="submit" name="page_users_deny" value="$deny"/> <input type="submit" name="page_users_approve" value="$approve" /></div>
|
||||
{{ else }}
|
||||
<p>$no_pending</p>
|
||||
{{ endif }}
|
||||
|
||||
|
||||
|
||||
|
||||
<h3>$h_users</h3>
|
||||
{{ if $users }}
|
||||
<table id='users'>
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
{{ for $th_users as $th }}<th>$th</th>{{ endfor }}
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{{ for $users as $u }}
|
||||
<tr>
|
||||
<td><img src="$u.micro" alt="$u.nickname" title="$u.nickname"></td>
|
||||
<td class='name'><a href="$u.url" title="$u.nickname" >$u.name</a></td>
|
||||
<td class='email'>$u.email</td>
|
||||
<td class='register_date'>$u.register_date</td>
|
||||
<td class='login_date'>$u.login_date</td>
|
||||
<td class='lastitem_date'>$u.lastitem_date</td>
|
||||
<td class='login_date'>$u.page_flags {{ if $u.is_admin }}($siteadmin){{ endif }}</td>
|
||||
<td class="checkbox">
|
||||
{{ if $u.is_admin }}
|
||||
|
||||
{{ else }}
|
||||
<input type="checkbox" class="users_ckbx" id="id_user_$u.uid" name="user[]" value="$u.uid"/></td>
|
||||
{{ endif }}
|
||||
<td class="tools">
|
||||
{{ if $u.is_admin }}
|
||||
|
||||
{{ else }}
|
||||
<a href="$baseurl/admin/users/block/$u.uid?t=$form_security_token" title='{{ if $u.blocked }}$unblock{{ else }}$block{{ endif }}'><span class='icon block {{ if $u.blocked==0 }}dim{{ endif }}'></span></a>
|
||||
<a href="$baseurl/admin/users/delete/$u.uid?t=$form_security_token" title='$delete' onclick="return confirm_delete('$u.name')"><span class='icon drop'></span></a>
|
||||
{{ endif }}
|
||||
</td>
|
||||
</tr>
|
||||
{{ endfor }}
|
||||
</tbody>
|
||||
</table>
|
||||
<div class='selectall'><a href='#' onclick="return selectall('users_ckbx');">$select_all</a></div>
|
||||
<div class="submit"><input type="submit" name="page_users_block" value="$block/$unblock" /> <input type="submit" name="page_users_delete" value="$delete" onclick="return confirm_delete_multi()" /></div>
|
||||
{{ else }}
|
||||
NO USERS?!?
|
||||
{{ endif }}
|
||||
</form>
|
||||
</div>
|
|
@ -5,7 +5,7 @@
|
|||
<script>var baseurl="<?php echo $a->get_baseurl() ?>";</script>
|
||||
<?php if(x($page,'htmlhead')) echo $page['htmlhead'] ?>
|
||||
</head>
|
||||
<body>
|
||||
<body <?php if($a->module === 'home') echo 'onLoad="setTimeout(\'homeRedirect()\', 1500)"'?>>
|
||||
<?php if(x($page,'nav')) echo $page['nav']; ?>
|
||||
|
||||
<?php if( $a->module === 'home' ) { ?>
|
||||
|
|
Before Width: | Height: | Size: 699 B After Width: | Height: | Size: 699 B |
|
@ -28,6 +28,10 @@
|
|||
<div id="profile-jot-submit-wrapper" class="jothidden">
|
||||
<input type="submit" id="profile-jot-submit" name="submit" value="$share" />
|
||||
|
||||
<div id="profile-rotator-wrapper" style="display: $visitor;" >
|
||||
<img id="profile-rotator" src="images/rotator.gif" alt="$wait" title="$wait" style="display: none;" />
|
||||
</div>
|
||||
|
||||
<div id="profile-upload-wrapper" style="display: $visitor;" >
|
||||
<div id="wall-image-upload-div" ><a href="#" onclick="return false;" id="wall-image-upload" class="icon camera" title="$upload"></a></div>
|
||||
</div>
|
||||
|
@ -64,10 +68,6 @@
|
|||
$jotplugins
|
||||
</div>
|
||||
|
||||
<div id="profile-rotator-wrapper" style="display: $visitor;" >
|
||||
<img id="profile-rotator" src="images/rotator.gif" alt="$wait" title="$wait" style="display: none;" />
|
||||
</div>
|
||||
|
||||
<div id="jot-preview-content" style="display:none;"></div>
|
||||
|
||||
<div style="display: none;">
|
||||
|
@ -75,8 +75,8 @@
|
|||
$acl
|
||||
<hr style="clear:both"/>
|
||||
<div id="profile-jot-email-label">$emailcc</div><input type="text" name="emailcc" id="profile-jot-email" title="$emtitle" />
|
||||
<div id="profile-jot-email-end"></div>
|
||||
$jotnets
|
||||
<div id="profile-jot-networks-end"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -1,20 +1,33 @@
|
|||
|
||||
function openClose(theID) {
|
||||
if(document.getElementById(theID).style.display == "block") {
|
||||
document.getElementById(theID).style.display = "none"
|
||||
}
|
||||
else {
|
||||
document.getElementById(theID).style.display = "block"
|
||||
}
|
||||
}
|
||||
function openClose(listID) {
|
||||
/* if(document.getElementById(theID).style.display == "block") {
|
||||
document.getElementById(theID).style.display = "none"
|
||||
}
|
||||
else {
|
||||
document.getElementById(theID).style.display = "block"
|
||||
}*/
|
||||
listID = "#" + listID.replace(/:/g, "\\:");
|
||||
listID = listID.replace(/\./g, "\\.");
|
||||
listID = listID.replace(/@/g, "\\@");
|
||||
|
||||
function openMenu(theID) {
|
||||
document.getElementById(theID).style.display = "block"
|
||||
}
|
||||
if($j(listID).is(":visible")) {
|
||||
$j(listID).hide();
|
||||
$j(listID+"-wrapper").show();
|
||||
alert($j(listID+"-wrapper").attr("id"));
|
||||
}
|
||||
else {
|
||||
$j(listID).show();
|
||||
$j(listID+"-wrapper").hide();
|
||||
}
|
||||
}
|
||||
|
||||
function closeMenu(theID) {
|
||||
document.getElementById(theID).style.display = "none"
|
||||
}
|
||||
function openMenu(theID) {
|
||||
document.getElementById(theID).style.display = "block"
|
||||
}
|
||||
|
||||
function closeMenu(theID) {
|
||||
document.getElementById(theID).style.display = "none"
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
2
view/theme/frost-mobile/js/main.min.js
vendored
2
view/theme/frost-mobile/js/main.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -235,6 +235,13 @@ $j(function(){
|
|||
|
||||
|
||||
|
||||
function homeRedirect() {
|
||||
$j('html').fadeOut('slow', function(){
|
||||
window.location = baseurl + "/login";
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function insertFormatting(comment,BBcode,id) {
|
||||
|
||||
var tmpStr = $j("#comment-edit-text-" + id).val();
|
||||
|
|
2
view/theme/frost-mobile/js/theme.min.js
vendored
2
view/theme/frost-mobile/js/theme.min.js
vendored
File diff suppressed because one or more lines are too long
|
@ -36,6 +36,9 @@ div.jGrowl div.info {
|
|||
top: 15px;
|
||||
right: 10px;
|
||||
}
|
||||
div.jGrowl-notification {
|
||||
border-radius: 7px;
|
||||
}
|
||||
|
||||
.login-button {
|
||||
margin-top: 90px;
|
||||
|
@ -89,6 +92,7 @@ div.section-wrapper {
|
|||
|
||||
#div_id_remember {
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
|
||||
#login_openid {
|
||||
|
|
|
@ -1164,14 +1164,14 @@ input#dfrn-url {
|
|||
}
|
||||
|
||||
.wall-item-content-wrapper {
|
||||
padding-top: 30px;
|
||||
padding-top: 1em;
|
||||
border-top: 2px solid #AAAAAA;
|
||||
position: relative;
|
||||
|
||||
}
|
||||
|
||||
.wall-item-content-wrapper.comment {
|
||||
margin-top: 30px;
|
||||
margin-top: 15px;
|
||||
padding-top: 0px;
|
||||
margin-left: 5px;
|
||||
margin-right: 5px;
|
||||
|
@ -1261,7 +1261,7 @@ input#dfrn-url {
|
|||
/* z-index: 100;*/
|
||||
}
|
||||
.wall-item-lock {
|
||||
margin-top: 30px;
|
||||
margin-top: 1em;
|
||||
left: 105px;
|
||||
position: absolute;
|
||||
top: 1px;
|
||||
|
@ -1355,11 +1355,11 @@ input#dfrn-url {
|
|||
}
|
||||
.wall-item-photo {
|
||||
border: none;
|
||||
border-radius: 7px;
|
||||
}
|
||||
.comment .wall-item-photo {
|
||||
width: 50px !important;
|
||||
height: 50px !important;
|
||||
border-top-left-radius: 10px;
|
||||
}
|
||||
.wall-item-content {
|
||||
float: left;
|
||||
|
@ -1630,6 +1630,9 @@ input#dfrn-url {
|
|||
#profile-jot-plugin-end{
|
||||
clear: both;
|
||||
}
|
||||
input#profile-jot-email {
|
||||
display: block;
|
||||
}
|
||||
.profile-jot-net {
|
||||
float: left;
|
||||
margin-right: 10px;
|
||||
|
@ -2123,14 +2126,14 @@ input#dfrn-url {
|
|||
}
|
||||
|
||||
#profile-jot-acl-wrapper{
|
||||
width:270px;
|
||||
/*width:270px;*/
|
||||
padding-left:10px;
|
||||
height:auto;
|
||||
overflow:visible;
|
||||
}
|
||||
|
||||
#acl-wrapper {
|
||||
width: 270px;
|
||||
/*width: 270px;*/
|
||||
float:left;
|
||||
}
|
||||
#acl-search {
|
||||
|
@ -3898,6 +3901,9 @@ div.jGrowl div.info {
|
|||
top: 15px;
|
||||
right: 10px;
|
||||
}
|
||||
div.jGrowl-notification {
|
||||
border-radius: 7px;
|
||||
}
|
||||
.qcomment {
|
||||
border: 1px solid #EEE;
|
||||
padding: 3px;
|
||||
|
|
|
@ -4,18 +4,20 @@
|
|||
* Name: Frost--mobile version
|
||||
* Description: Like frosted glass
|
||||
* Credits: Navigation icons taken from http://iconza.com. Other icons taken from http://thenounproject.com, including: Like, Dislike, Black Lock, Unlock, Pencil, Tag, Camera, Paperclip (Marie Coons), Folder (Sergio Calcara), Chain-link (Andrew Fortnum), Speaker (Harold Kim), Quotes (Henry Ryder), Video Camera (Anas Ramadan), and Left Arrow, Right Arrow, and Delete X (all three P.J. Onori). All under Attribution (CC BY 3.0). Others from The Noun Project are public domain or No Rights Reserved (CC0).
|
||||
* Version: Version 0.2.16
|
||||
* Version: Version 0.2.17
|
||||
* Author: Zach P <techcity@f.shmuz.in>
|
||||
* Maintainer: Zach P <techcity@f.shmuz.in>
|
||||
*/
|
||||
|
||||
$a->theme_info = array();
|
||||
$a->sourcename = 'Friendica mobile web';
|
||||
$a->videowidth = 250;
|
||||
$a->videoheight = 200;
|
||||
$a->theme_thread_allow = false;
|
||||
$a->force_max_items = 10;
|
||||
set_template_engine($a, 'smarty3');
|
||||
function frost_mobile_init(&$a) {
|
||||
$a->theme_info = array();
|
||||
$a->sourcename = 'Friendica mobile web';
|
||||
$a->videowidth = 250;
|
||||
$a->videoheight = 200;
|
||||
$a->theme_thread_allow = false;
|
||||
$a->force_max_items = 10;
|
||||
set_template_engine($a, 'smarty3');
|
||||
}
|
||||
|
||||
function frost_mobile_content_loaded(&$a) {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue