Commit 4e89ac8d authored by Jen Zajac's avatar Jen Zajac Committed by Aaron Wells

Remove all text-success from icons except checkmarks

  Limit green colouring to tickmarks only

  Bug #1465107

  behatnotneeded

Change-Id: I9d2cfb9e33602904ccd420ad5d801513636a963d
parent 5600c733
......@@ -106,7 +106,7 @@ function editform(item) {
// Either a save, a cancel button, or both.
var savecancel = [];
var save = BUTTON({'type':'button','class':'button btn btn-default btn-sm'}, SPAN({'class':'icon icon-plus-circle icon-lg text-success'}));
var save = BUTTON({'type':'button','class':'button btn btn-default btn-sm'}, SPAN({'class':'icon icon-plus-circle icon-lg'}));
connect(save, 'onclick', function () { saveitem(item.id); });
// The link field will be a text box or a select in the case of an admin file.
......
......@@ -72,7 +72,7 @@ if ($forums) {
'usebuttontag' => true,
'class' => 'btn-default btn-sm',
'renderelementsonly' => true,
'value' => $forum->subscribed ? '<span class="icon icon-lg icon-times prs text-danger"></span> ' . get_string('Unsubscribe', 'interaction.forum') : '<span class="icon icon-lg icon-star prs text-success"></span> ' . get_string('Subscribe', 'interaction.forum'),
'value' => $forum->subscribed ? '<span class="icon icon-lg icon-times prs text-danger"></span> ' . get_string('Unsubscribe', 'interaction.forum') : '<span class="icon icon-lg icon-star prs"></span> ' . get_string('Subscribe', 'interaction.forum'),
'help' => false
),
'forum' => array(
......
......@@ -80,7 +80,7 @@ if ($membership && !$topic->forumsubscribed) {
'type' => 'button',
'usebuttontag' => true,
'class' => 'btn-default',
'value' => $topic->topicsubscribed ? '<span class="icon icon-times icon-lg text-danger prs"></span>'. get_string('unsubscribefromtopic', 'interaction.forum') : '<span class="icon icon-star icon-lg text-success prs"></span>' . get_string('subscribetotopic', 'interaction.forum'),
'value' => $topic->topicsubscribed ? '<span class="icon icon-times icon-lg text-danger prs"></span>'. get_string('unsubscribefromtopic', 'interaction.forum') : '<span class="icon icon-star icon-lg prs"></span>' . get_string('subscribetotopic', 'interaction.forum'),
'help' => false
),
'topic' => array(
......
......@@ -182,7 +182,7 @@ if ($membership) {
'type' => 'button',
'usebuttontag' => true,
'class' => 'btn-default',
'value' => $forum->subscribed ? '<span class="icon icon-lg icon-times prs text-danger"></span> ' . get_string('unsubscribefromforum', 'interaction.forum') : '<span class="icon icon-lg icon-star prs text-success"></span> ' . get_string('subscribetoforum', 'interaction.forum'),
'value' => $forum->subscribed ? '<span class="icon icon-lg icon-times prs text-danger"></span> ' . get_string('unsubscribefromforum', 'interaction.forum') : '<span class="icon icon-lg icon-star prs"></span> ' . get_string('subscribetoforum', 'interaction.forum'),
'help' => false
),
'forum' => array(
......
......@@ -1093,7 +1093,7 @@ function group_get_join_form($name, $groupid, $returnto='view') {
'type' => 'button',
'usebuttontag' => true,
'class' => 'btn-default',
'value' => '<span class="icon icon-lg icon-plus text-success prs"></span> ' . get_string('joingroup', 'group')
'value' => '<span class="icon icon-lg icon-plus prs"></span> ' . get_string('joingroup', 'group')
)
)
),
......
......@@ -6292,7 +6292,7 @@ function create_view_form($group=null, $institution=null, $template=null, $colle
'type' => 'button',
'usebuttontag' => true,
'class' => 'btn-default',
'value' => '<span class="icon icon-plus icon-lg text-success prs"></span>' . get_string('createview', 'view'),
'value' => '<span class="icon icon-plus icon-lg prs"></span>' . get_string('createview', 'view'),
),
'submitcollection' => array(
'type' => 'hidden',
......
......@@ -147,7 +147,7 @@ $output .= '<div id="createcustomlayoutpane" class="row col-static">'
// 'Add row' button
$output .='<button type="button" name="addrow" class="btn btn-sm btn-default mtm" id="addrow" onclick="CustomLayoutManager.customlayout_add_row()">'
.'<span class="icon icon-lg icon-plus-circle prm text-success"></span>'
.'<span class="icon icon-lg icon-plus-circle prm"></span>'
. get_string('addarow', 'view')
.'</button>'
. '</div>';
......@@ -159,7 +159,7 @@ $output .= '</div>';
$output .= '<div id="previewcustomlayoutpane" class="panel-footer">'
. '<button type="button" name="submitlayout" id="addlayout" class="btn btn-primary" onclick="CustomLayoutManager.customlayout_submit_layout()">'
.'<span class="icon icon-lg icon-check prs"></span>'
.'<span class="icon icon-lg icon-check text-success prs"></span>'
. get_string('createnewlayout', 'view')
. '</button>'
. '</div>';
......
......@@ -18,7 +18,7 @@
{if ($editing)}
{if (count($blogs) == 1)}
<a class="panel-footer {if (count($blogs) != 1)} hidden{/if}">
<span class="icon icon-plus text-success prs"></span>
<span class="icon icon-plus prs"></span>
{str tag='shortcutnewentry' section='artefact.blog'}
</a>
{else}
......@@ -33,7 +33,7 @@
</select>
<span class="input-group-btn">
<a class="btn btn-default btnshortcut">
<span class="icon icon-plus text-success prs"></span> {str tag='shortcutgo' section='artefact.blog'}
<span class="icon icon-plus prs"></span> {str tag='shortcutgo' section='artefact.blog'}
</a>
</span>
</div>
......
......@@ -9,7 +9,7 @@
<input class="select" type="hidden" value="{$tagselect}">
<span class="input-group-btn">
<a class="btn btnshortcut btn-default">
<span class="icon icon-plus text-success prs"></span>
<span class="icon icon-plus prs"></span>
{str tag='shortcutgo' section='artefact.blog'}
</a>
</span>
......
......@@ -35,7 +35,7 @@
{if ($editing && $canaddpost)}
<a class="panel-footer" href="{$WWWROOT}artefact/blog/post.php?blog={$blogid}" target="_blank">
<span class="icon icon-plus text-success prs"></span>
<span class="icon icon-plus prs"></span>
{str tag='shortcutnewentry' section='artefact.blog'}
</a>
{/if}
......
......@@ -26,7 +26,7 @@
<div class="panel-footer has-form">
<a href="{$WWWROOT}artefact/blog/post.php?blog={$blog->id}" class="btn btn-default btn-sm">
<span class="icon icon-plus text-success mrs"></span>
<span class="icon icon-plus mrs"></span>
{str tag=addpost section=artefact.blog}
</a>
<div class="pull-right">
......
{include file="header.tpl"}
<div class="text-right btn-top-right btn-group btn-group-top">
<a class="btn btn-default settings" href="{$WWWROOT}artefact/blog/new/index.php{if $institutionname}?institution={$institutionname}{/if}{if $group}?group={$group}{/if}">
<span class="icon icon-lg icon-plus text-success prs"></span>
<span class="icon icon-lg icon-plus prs"></span>
{str section="artefact.blog" tag="addblog"}
</a>
</div>
......
{include file="header.tpl"}
<div class="text-right btn-top-right btn-group btn-group-top">
<a class="btn btn-default addpost" href="{$WWWROOT}artefact/blog/post.php?blog={$blog->get('id')}">
<span class="icon icon-lg icon-plus prs text-success"></span>
<span class="icon icon-lg icon-plus prs"></span>
{str section="artefact.blog" tag="addpost"}
</a>
{if !$blog->get('locked')}
......
<div class="text-right">
<a class="btn btn-default" href="{$WWWROOT}artefact/internal/socialprofile.php">
<span class="icon icon-lg icon-plus text-success prs"></span>
<span class="icon icon-lg icon-plus prs"></span>
{str tag=newsocialprofile section=artefact.internal}
</a>
</div>
......
{include file="header.tpl"}
<div class="btn-group btn-group-top">
<a class="btn btn-default" href="{$WWWROOT}artefact/plans/new.php">
<span class="icon icon-plus icon-lg prs text-success"></span>
<span class="icon icon-plus icon-lg prs"></span>
{str section="artefact.plans" tag="newplan"}</a>
</div>
{if !$plans.data}
......
{include file="header.tpl"}
<div class="text-right btn-top-right btn-group btn-group-top">
<a class="btn btn-default settings" href="{$WWWROOT}artefact/plans/new.php?id={$plan}">
<span class="icon icon-lg icon-plus text-success prs"></span>
<span class="icon icon-lg icon-plus prs"></span>
{str section="artefact.plans" tag="newtask"}
</a>
</div>
......
......@@ -3,7 +3,7 @@
{if $admin}
<div id="forumbtn" class="text-right btn-top-right btn-group btn-group-top">
<a href="{$WWWROOT}interaction/edit.php?group={$groupid}&amp;plugin=forum" class="btn btn-default newforum">
<span class="icon icon-plus icon-lg prs text-success"></span>
<span class="icon icon-plus icon-lg prs"></span>
{str tag="newforum" section=interaction.forum}
</a>
</div>
......
......@@ -22,7 +22,7 @@
{/if}
{if $topic->subscribed}
<span class="icon icon-star icon-lg prs text-success"></span>
<span class="icon icon-star icon-lg prs"></span>
<span class="sr-only">{str tag="Subscribed" section="interaction.forum"}</span>
{/if}
</div>
......
......@@ -7,7 +7,7 @@
{if $membership && ($moderator || ($forum->newtopicusers != 'moderators') && $ineditwindow) }
<a href="{$WWWROOT}interaction/forum/edittopic.php?forum={$forum->id}" class="btn btn-default newforumtopic">
<span class="icon icon-plus icon-lg prs text-success"></span>
<span class="icon icon-plus icon-lg prs"></span>
{str tag="newtopic" section="interaction.forum"}
</a>
{if $admin}
......
......@@ -50,7 +50,7 @@
</tbody>
</table>
<a href="license-edit.php?add=add" class="btn btn-default">
<span class="icon icon-plus text-success prs"></span>
<span class="icon icon-plus prs"></span>
{str tag=addsitelicense section=admin}
</a>
{if $extralicenses}
......
......@@ -46,12 +46,12 @@
{if $siteadmin}
<form class="form-as-button pull-left" action="" method="post">
<button class="submit btn btn-default" type="submit" name="add" value="{str tag="addinstitution" section="admin"}" id="admininstitution_add">
<span class="icon icon-plus icon-lg text-success prs"></span>
<span class="icon icon-plus icon-lg prs"></span>
<span class="hidden-xs">{str tag="addinstitution" section="admin"}</span>
</button>
</form>
{/if}
{if $countinstitutions > 1}
......
{if $canedit}
<div class="text-right btn-group btn-top-right btn-group-top {if $GROUP}pagetabs{/if} ">
<a class="btn btn-default" href="{$WWWROOT}collection/edit.php?new=1{$urlparamsstr}">
<span class="text-success icon icon-plus icon-lg prs"></span>
<span class="icon icon-plus icon-lg prs"></span>
{str section=collection tag=newcollection}</a>
<a class="btn btn-default" href="{$WWWROOT}view/choosetemplate.php?searchcollection=1{$urlparamsstr}">
<span class="text-success icon icon-files-o icon-lg prs"></span>
<span class="icon icon-files-o icon-lg prs"></span>
{str section=collection tag=copyacollection}
</a>
</div>
{/if}
\ No newline at end of file
{/if}
......@@ -127,7 +127,7 @@
{{/foreach}}
</div>
<button class="btn btn-default btn-sm align-with-input" onclick="{{$name}}_new(); return false;">
<span class="icon icon-plus prs text-success icon-lg"> </span>
<span class="icon icon-plus prs icon-lg"> </span>
{{str tag="addemail"}}
</button>
{{/if}}
......@@ -3,18 +3,18 @@
<div class="groupuserstatus text-right btn-top-right btn-group btn-group-top">
{if $group->canleave}
<a href ="{$WWWROOT}group/leave.php?id={$group->id}&amp;returnto={$returnto}" class="btn btn-default">
<span class="icon icon-long-arrow-right icon-lg text-danger "></span>
<span class="icon icon-long-arrow-right icon-lg text-danger"></span>
<span class="btn-title pls">{str tag="leavegroup" section="group"}</span>
</a>
{/if}
{if $group->invitefriends}
<a href ="{$WWWROOT}group/inviteusers.php?id={$group->id}&friends=1" class="btn btn-default">
<span class="icon icon-user-plus icon-lg text-success "></span>
<span class="icon icon-user-plus icon-lg"></span>
<span class="btn-title pls">{str tag="invitefriends" section="group"}</span>
</a>
{elseif $group->suggestfriends && ($group->request || $group->jointype == 'open')}
<a href ="{$WWWROOT}group/suggest.php?id={$group->id}" class="btn btn-default">
<span class="icon icon-lightbulb-o icon-lg text-success "></span>
<span class="icon icon-lightbulb-o icon-lg"></span>
<span class="btn-title pls">{str tag="suggesttofriends" section="group"}</span>
</a>
{/if}
......@@ -36,7 +36,7 @@
<span class="btn-title pls hide-small">{str tag=settings}</span>
</a>
<a href="{$WWWROOT}group/delete.php?id={$group->id}" title="{str(tag=deletespecific arg1=$group->name)|escape:html|safe}" class="btn btn-default">
<span class="icon icon-trash icon-lg text-danger"></span>
<span class="icon icon-trash icon-lg text-danger"></span>
<span class="btn-title pls hide-small">{str tag=delete}</span>
</a>
</div>
......@@ -46,7 +46,7 @@
<a href="{$WWWROOT}group/members.php?id={$group->id}&amp;membershiptype=request" class="text-small with-heading">
<span class="label label-warning">{$group->requests}</span>
<span class="btn-title pls text-warning">
{str tag="membershiprequests" section="group"}
{str tag="membershiprequests" section="group"}
</span>
</a>
{/if}
......@@ -85,7 +85,7 @@
<div class="btn-action-list requestedtojoin">
<div class="groupuserstatus text-right btn-top-right btn-group btn-group-top">
<a href="{$WWWROOT}group/requestjoin.php?id={$group->id}&amp;returnto={$returnto}" class="btn btn-default">
<span class="icon icon-lg icon-comments text-success prs"></span>
<span class="icon icon-lg icon-comments prs"></span>
{str tag="requestjoingroup" section="group"}
</a>
</div>
......@@ -108,4 +108,4 @@
{str tag="youaregroup$group->role" section="grouptype.$group->grouptype"}
{/if}
</div>
{/if}
\ No newline at end of file
{/if}
......@@ -2,7 +2,7 @@
{if $cancreate}
<div class="text-right btn-top-right btn-group btn-group-top">
<a href="{$WWWROOT}group/edit.php" class="btn btn-default creategroup">
<span class="icon icon-lg icon-plus prd text-success"></span>
<span class="icon icon-lg icon-plus prd"></span>
{str tag="creategroup" section="group"}
</a>
</div>
......
......@@ -2,7 +2,7 @@
<div class="text-right btn-top-right btn-group btn-group-top">
<a href="{$WWWROOT}skin/design.php{if $siteskins}?site=1{/if}" class="btn btn-default button" type="submit">
<span class="icon icon-plus icon-lg text-success prs"></span>
<span class="icon icon-plus icon-lg prs"></span>
{str tag=createskin section=skin}
</a>
<a href="{$WWWROOT}skin/import.php{if $siteskins}?site=1{/if}" class="btn btn-default button" type="submit">
......
......@@ -56,14 +56,14 @@
{elseif !$user->pending} {* Not an existing, pending, or requested friend *}
{if $user->friendscontrol == 'auth'}
<li class="friend pbs">
<span class="icon icon-user-plus icon-lg text-success prs"></span>
<span class="icon icon-user-plus icon-lg prs"></span>
<a href="{$WWWROOT}user/requestfriendship.php?id={$user->id}&amp;returnto={$page}&amp;offset={$offset}" class="btn-request">
{str tag='sendfriendrequest' section='group'}
</a>
</li>
{elseif $user->friendscontrol == 'auto'}
<li class="friend pbs">
<span class="icon icon-user-plus text-success icon-lg prs"></span>
<span class="icon icon-user-plus icon-lg prs"></span>
<a href="#addfriend{$user->id}_addfriend_submit" data-triggersubmit="addfriend{$user->id}_addfriend_submit">
{str tag='addtofriendslist' section='group'}
</a>
......
......@@ -55,7 +55,7 @@
<span class="icon-user-secret icon icon-lg prs"></span>
{$loginas}
</a>
{if $USER->get('admin')}
<a href="{$WWWROOT}admin/users/edit.php?id={$USERID}" class="btn-edit btn btn-default">
<span class="icon-cogs icon icon-lg prs"></span>
......@@ -63,27 +63,27 @@
</a>
{/if}
{/if}
{if $canmessage}
<a href="{$WWWROOT}{if $mrmoduleactive}module/multirecipientnotification{else}user{/if}/sendmessage.php?id={$USERID}&amp;returnto=view" class="btn-message btn btn-default">
<span class="icon-envelope icon icon-lg prs"></span>
{str tag='sendmessage' section='group'}
</a>
{/if}
{if $relationship == 'existingfriend'}
<a href="{$WWWROOT}user/removefriend.php?id={$USERID}&amp;returnto=view" class="btn-del btn btn-default">
<span class="icon-user-times icon icon-lg prs text-danger"></span>
{str tag='removefromfriendslist' section='group'}
</a>
{elseif $relationship == 'none' && $friendscontrol == 'auto'}
{$newfriendform|safe}
{elseif $relationship == 'none' && $friendscontrol == 'auth'}
<a href="{$WWWROOT}user/requestfriendship.php?id={$USERID}&amp;returnto=view" class="btn-friend btn btn-default">
<span class="icon-user-plus icon icon-lg prs text-success"></span>
<span class="icon-user-plus icon icon-lg prs"></span>
{str tag='requestfriendship' section='group'}
</a>
{/if}
......@@ -130,9 +130,9 @@
{if $restrictedview}
<strong>{str tag=profilenotshared section=view}</strong>
{else}
{$viewcontent|safe}
{/if}
</div>
</div>
......
......@@ -4,7 +4,7 @@
{$createviewform|safe}
<form method="post" class="form-as-button pull-left" action="{$WWWROOT}view/choosetemplate.php">
<button class="submit btn btn-default">
<span class="icon icon-lg text-success prs icon-files-o"></span>
<span class="icon icon-lg prs icon-files-o"></span>
{str tag="copyaview" section="view"}
</button>
{if $GROUP}
......
......@@ -36,7 +36,7 @@
{if $copyurl}{strip}
<a id="copyview-button" title="{str tag=copythisview section=view}" href="{$copyurl}" class="btn btn-default">
<span class="text-success icon icon-files-o icon-lg prs"></span>
<span class="icon icon-files-o icon-lg prs"></span>
{str tag=copy section=mahara}
</a>
{/strip}{/if}
......@@ -181,8 +181,8 @@
<div class="modal-body">
<p>{str tag=confirmcopydesc section=view}</p>
<div class="btn-group">
<button id="copy-collection-button" type="button" class="btn btn-default"><span class="icon icon-folder-open text-success"></span> {str tag=Collection section=collection}</button>
<button id="copy-view-button" type="button" class="btn btn-default"><span class="icon icon-file-text text-success"></span> {str tag=view}</button>
<button id="copy-collection-button" type="button" class="btn btn-default"><span class="icon icon-folder-open "></span> {str tag=Collection section=collection}</button>
<button id="copy-view-button" type="button" class="btn btn-default"><span class="icon icon-file-text "></span> {str tag=view}</button>
</div>
</div>
</div>
......
......@@ -47,7 +47,7 @@ $newform = array(
'usebuttontag' => true,
'class' => 'btn-link',
'elementtitle' => get_string('generatesecreturl', 'view', hsc($title)),
'value' => '<span class="icon icon-plus icon-lg text-success prs"></span> ' .get_string('newsecreturl', 'view'),
'value' => '<span class="icon icon-plus icon-lg prs"></span> ' .get_string('newsecreturl', 'view'),
),
),
);
......
Markdown is supported
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