Commit ac086a49 authored by Nigel McNie's avatar Nigel McNie
Browse files

Move the 'edit this view' link to where the artefacts in a view are listed on...

Move the 'edit this view' link to where the artefacts in a view are listed on My Views. Fixes #2317.

It might not be perfect, but it's better than current.
parent 7e7aa8b5
......@@ -754,8 +754,7 @@ fieldset.collapsed .mceEditor td {
font-size: 12pt !important;
font-weight: bold;
}
#btn-edit,
#btn-editthisview {
#btn-edit {
padding-left: 12px;
}
#btn-reply {
......@@ -1634,4 +1633,4 @@ table#initials .initial-letters {
/* FOOTER */
#footerwrap {
display: none;
}
\ No newline at end of file
}
......@@ -1397,18 +1397,19 @@ fieldset.collapsed .mceEditor td {
color: #3986c3 !important;
}
#myviewstable .viewitem a#editviewdetails,
#myviewstable .viewitem a#editthisview,
#myviewstable .viewitem a#editviewaccess {
color: #7f9d16 !important;
}
#editviewdetails,
#editthisview,
#editviewaccess {
padding-left: 15px;
background: url(../images/edit.gif) no-repeat left 2px;
font-size: 12px !important;
font-weight: bold;
}
#btn-edit,
#btn-editthisview {
#btn-edit {
padding-left: 12px;
font-size: 11px;
background: url(../images/icon-edit.gif) no-repeat left 4px;
......@@ -1418,13 +1419,11 @@ fieldset.collapsed .mceEditor td {
font-size: 11px;
background: url(../images/icon-reply.gif) no-repeat left 4px;
}
#btn-editthisview:hover {
text-decoration: none;
}
#btn-deletethisview {
margin-left: 10px;
padding-left: 12px;
font-size: 11px;
font-size: 13px;
font-weight: bold;
background: url(../images/icon-delete.gif) no-repeat left 6px;
}
#btn-deletethisview:hover {
......
......@@ -13,7 +13,6 @@
<td>
{if !$view.submittedto}
<a href="{$WWWROOT}view/delete.php?id={$view.id}" class="fr" id="btn-deletethisview">{str tag="deletethisview" section="view"}</a>
<a href="{$WWWROOT}view/blocks.php?id={$view.id}" class="fr" id="btn-editthisview">{str tag ="editthisview" section="view"}</a>
{/if}
<h3><a href="{$WWWROOT}view/view.php?id={$view.id}">{$view.title|escape}</a></h3>
<div class="viewitem">
......@@ -26,8 +25,9 @@
{/if}
</div>
<div class="viewitem">
{if !$view.submittedto}<a href="{$WWWROOT}view/blocks.php?id={$view.id}" id="editthisview">{str tag ="editthisview" section="view"}</a><br>{/if}
{if $view.artefacts}
<strong>{str tag="artefacts" section="view"}:</strong><br />
{str tag="artefacts" section="view"}:
{foreach from=$view.artefacts item=artefact name=artefacts}<a href="{$WWWROOT}view/artefact.php?artefact={$artefact.id}&amp;view={$view.id}" id="link-artefacts">{$artefact.title|escape}</a>{if !$smarty.foreach.artefacts.last}, {/if}{/foreach}
{/if}
</div>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment