Skip to content
Permalink
Browse files

simplified sharing private-password cache lists; updates #748

  • Loading branch information...
following5 committed Aug 21, 2015
1 parent 83a7ad5 commit b1db16535714487b0320694f3e46668e09251c27
@@ -2701,12 +2701,13 @@ INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('2225', 'without
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('2226', 'hidden[cachelist]', '2013-11-03 10:09:14');
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('2227', 'Coordinate changes', '2013-11-03 10:09:14');
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('2228', 'Password for sharing', '2013-11-03 10:09:14');
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('2229', 'list has password; copy this link to share it', '2013-11-03 10:09:14');
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('2229', 'list has password; click to share it', '2013-11-03 10:09:14');
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('2230', 'Own lists', '2013-11-03 10:09:14');
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('2231', 'Bookmarked lists', '2013-11-03 10:09:14');
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('2232', 'Do you really want to unbookmark the list \\\'%1\\\'?', '2013-11-03 10:09:14');
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('2233', 'bookmark', '2013-11-03 10:09:14');
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('2234', 'I have bookmarked this list.', '2013-11-03 10:09:14');
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('2235', 'Link to share this cache list:', '2013-11-03 10:09:14');
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('2240', 'Chinese', '2015-08-18 15:00:00');
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('2241', 'Thai', '2015-08-18 15:00:00');
INSERT INTO `sys_trans` (`id`, `text`, `last_modified`) VALUES ('2242', 'Luxembourgish', '2015-08-18 15:00:00');
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('2226', 'DE', 'ausgeblendet', '2013-11-03 10:09:14');
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('2227', 'DE', 'Koordinatenänderungen', '2013-11-03 10:09:14');
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('2228', 'DE', 'Kennwort für Weitergabe', '2013-11-03 10:09:14');
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('2229', 'DE', 'Liste mit Kennwort; kopiere diesen Link, um sie weiterzugeben.', '2013-11-03 10:09:14');
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('2229', 'DE', 'Liste mit Kennwort; klicke hier, um sie zu teilen.', '2013-11-03 10:09:14');
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('2230', 'DE', 'Eigene Listen', '2013-11-03 10:09:14');
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('2231', 'DE', 'Gemerkte Listen (Favoriten)', '2013-11-03 10:09:14');
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('2232', 'DE', 'Möchtest du die Cacheliste \\\'%1\\\' wirklich aus den Favoriten entfernen?', '2013-11-03 10:09:14');
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('2233', 'DE', 'merken', '2013-11-03 10:09:14');
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('2234', 'DE', 'Diese Liste gehört zu meinen Favoriten.', '2013-11-03 10:09:14');
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('2235', 'DE', 'Link zum Teilen dieser Cacheliste:', '2013-11-03 10:09:14');
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('2240', 'DE', 'Chinesisch', '2015-08-18 15:00:00');
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('2241', 'DE', 'Thai', '2015-08-18 15:00:00');
INSERT INTO `sys_trans_text` (`trans_id`, `lang`, `text`, `last_modified`) VALUES ('2242', 'DE', 'Luxemburgisch', '2015-08-18 15:00:00');
@@ -831,6 +831,15 @@ div.cachelistinfo { border:1px solid #a0a0a0; }
.cachelist-tooltip { padding: 0 0.2em 0 0.2em; max-width:700px; overflow:hidden; }
.cachelist-tooltip p { margin:0; padding:0; color:rgb(50,50,50); font-size:11px; }

.cachelist-popup {
position: absolute;
background-color: white;
font-size: 10px;
right: 72px;
padding: 5px 5px 10px 5px;
opacity: 0.9;
}

/* Pager */
.pager { font-size:14px; }
.smallpager { }
@@ -25,7 +25,15 @@
<tr class="cachelistitem">
<td class="{$listcolor}">{include file="res_cachelist_link.tpl"}</td>
{if $show_user}<td class="{$listcolor}"><a href="viewprofile.php?userid={$cachelist.user_id}">{$cachelist.username|escape}</a></td>{/if}
{if $show_status}<td class="{$listcolor}"><nobr>{if $cachelist.visibility>=2}{t}public{/t}{if $cachelist.visibility==3} <img src="resource2/{$opt.template.style}/images/action/16x16-adddesc.png" title="{t}visible for all users in cache listings{/t}" />{/if}{else}{t}private{/t}{if $cachelist.password} <a href="cachelist.php?id={$cachelist.id}&key={$cachelist.password|urlencode}"><img src="resource2/{$opt.template.style}/images/action/18x16-offer.png" {if $cachelist.user_id==$login.userid}title="{t}list has password; copy this link to share it{/t}"{/if} /></a>{/if}{/if}</nobr></td>{/if}
{if $show_status}<td class="{$listcolor}"><nobr>{if $cachelist.visibility>=2}{t}public{/t}{if $cachelist.visibility==3} <img src="resource2/{$opt.template.style}/images/action/16x16-adddesc.png" title="{t}visible for all users in cache listings{/t}" />{/if}{else}{if $cachelist.password}<a class="jslink" onclick="cl = getElementById('sharelist_{$cachelist.id}'); cl.style.display = (cl.style.display=='none'?'block':'none'); getElementById('permalink_text_{$cachelist.id}').select();" {if $cachelist.user_id==$login.userid}title="{t}list has password; click to share it{/t}"{/if} >{t}private{/t} <img src="resource2/{$opt.template.style}/images/action/18x16-offer.png" /></a>{else}{t}private{/t}{/if}{/if}</nobr>
{if $cachelist.password}
<div id="sharelist_{$cachelist.id}" class="cachelist-popup mapboxframe mapboxshadow" style="display:none" >
<table>
<tr><td><img src="resource2/ocstyle/images/viewcache/link.png" alt="" height="16" width="16" /> {t}Link to share this cache list:{/t}</td><td align="right"><a class="jslink" onclick="getElementById('sharelist_{$cachelist.id}').style.display='none'"><img src="resource2/ocstyle/images/navigation/19x19-close.png" style="opacity:0.7" /></a></td></tr>
<tr><td><input id="permalink_text_{$cachelist.id}" type="text" value="{$opt.page.absolute_url}cachelist.php?id={$cachelist.id}&key={$cachelist.password|urlencode}" size="65" /></td></tr>
</table>
</div>{/if}</td>
{/if}
<td class="{$listcolor}" style="text-align:center">{$cachelist.entries}</td>
{if $show_watchers}<td class="{$listcolor}" style="text-align:center">{if $cachelist.watchers}{$cachelist.watchers}{/if}</td>{/if}
{if $show_edit || $show_unbookmark || ($togglewatch && $login.userid)}

0 comments on commit b1db165

Please sign in to comment.
You can’t perform that action at this time.