#linksharedinfo fixes, as per @jancborchardt's suggestions: download links fixed; download anchor now looks like a button

master
Michał 'rysiek' Woźniak 2014-02-01 17:24:53 +01:00
parent 8c6e80d2c7
commit 80de19bcda
3 changed files with 20 additions and 3 deletions

View File

@ -281,7 +281,7 @@ button.category{margin:0 3px;}
font-weight:bold;
background: #777;
color:#ddd;
padding:0.2em;
padding:0.7em;
position:fixed;
top:0px;
width:100%;
@ -299,6 +299,23 @@ button.category{margin:0 3px;}
color:white;
}
#linksharedinfo .download-link {
display:inline-block;
background: #777;
border:solid 0.1em #ddd;
border-radius:0.2em;
padding:0.3em 1em;
color:#ddd;
text-decoration:none;
}
#linksharedinfo .download-link:hover {
background:#ddd;
border-color:#555;
color:#777;
text-decoration:none;
}
#linksharedinfo + #controls {
top:86px;
}

View File

@ -8,7 +8,7 @@
*/
if (isset($_['link_shared_calendar_name'])) {
?>
<div id="linksharedinfo">User <?php p($_['link_shared_calendar_owner'])?> shared &quot;<?php p($_['link_shared_calendar_name'])?>&quot; calendar with you; explore below or download using this link:<br/><a href="<?php p($_['link_shared_calendar_url'])?>&amp;download"><?php p($_['link_shared_calendar_url'])?>&amp;download</a></div>
<div id="linksharedinfo"><?php p($l->t('Calendar')) ?> &quot;<?php p($_['link_shared_calendar_name'])?>&quot;, <?php p($l->t('shared by'))?>: <?php p($_['link_shared_calendar_owner'])?>; <?php p($l->t('download or use in your calendar application:'))?> <a class="download-link" href="<?php echo $_['link_shared_calendar_url']; ?>&amp;download"><?php p($l->t('Download'))?></a></div>
<?php } ?>
<div id="controls">
<form id="view">

View File

@ -1,5 +1,5 @@
<?php if (isset($_['link_shared_event'])) { ?>
<div id="linksharedinfo">User <?php p($_['link_shared_event']['uid_owner'])?> shared &quot;<?php p($_['link_shared_event']['item_target'])?>&quot; event with you; explore below or download using this link:<br/><a href="<?php p($_['link_shared_calendar_url'])?>&amp;download"><?php p($_['link_shared_event_url'])?>&amp;download</a></div>
<div id="linksharedinfo"><?php p($l->t('Event')) ?> &quot;<?php p($_['link_shared_event']['item_target'])?>&quot;, <?php p($l->t('shared by'))?>: <?php p($_['link_shared_event']['uid_owner'])?>; <?php p($l->t('download or use in your calendar application:'))?> <a class="download-link" href="<?php echo $_['link_shared_event_url']; ?>&amp;download"><?php p($l->t('Download'))?></a></div>
<?php } ?>
<div id="event" class="event <?php if(isset($_['link_shared_event'])): ?>link-shared<?php endif; ?>" title="<?php p($l->t("View an event"));?>">
<?php if (!isset($_['link_shared_event'])): ?>