diff options
author | Dave Lawrence <dlawrence@mozilla.com> | 2011-12-08 22:49:24 +0100 |
---|---|---|
committer | Dave Lawrence <dlawrence@mozilla.com> | 2011-12-08 22:49:24 +0100 |
commit | 6b9320eab2e848a2b2ac2f454af939f467f3d738 (patch) | |
tree | fb0f29edc6e03bdc5e9180caeceafe3824c0ad7d | |
parent | 91f7bb260df5cee55f05c15ee5900323964809da (diff) | |
download | bugzilla-6b9320eab2e848a2b2ac2f454af939f467f3d738.tar.gz bugzilla-6b9320eab2e848a2b2ac2f454af939f467f3d738.tar.xz |
Fixed index.html to display icons correctly
-rw-r--r-- | skins/custom/index.css | 24 | ||||
-rw-r--r-- | template/en/default/index.html.tmpl | 38 |
2 files changed, 36 insertions, 26 deletions
diff --git a/skins/custom/index.css b/skins/custom/index.css index 3c1db9340..0c6884124 100644 --- a/skins/custom/index.css +++ b/skins/custom/index.css @@ -4,8 +4,28 @@ */ /* index.html.tmpl puts intro hook contents inside a div which causes - * * the icons to display over two rows when adding the Help icon. - * * So we change to inline to make it display a single row. */ + * the icons to display over two rows when adding the Help icon. + * So we change to inline to make it display a single row. */ #page-index .intro { display: inline; } #get_help { background: url(../standard/index/help.png) no-repeat; } + +.bz_common_actions { + display: block; + height: 170px; + width: 145px; + float: left; + margin: 0 2ex 2em 0; + text-align: center; +} +.bz_common_actions span { + position: relative; + top: 95%; + font-weight: bold; +} +.bz_common_actions, +.bz_common_actions:visited, +.bz_common_actions:hover +{ + text-decoration: none; +} diff --git a/template/en/default/index.html.tmpl b/template/en/default/index.html.tmpl index 5b9237aa1..29bc9adb6 100644 --- a/template/en/default/index.html.tmpl +++ b/template/en/default/index.html.tmpl @@ -125,30 +125,20 @@ YAHOO.util.Event.onDOMReady(onLoadActions); <td> <h1 id="welcome"> Welcome to [% terms.Bugzilla %]</h1> <div class="intro">[% Hook.process('intro') %]</div> - - <div class="bz_common_actions"> - <ul> - <li> - <a id="enter_bug" href="enter_bug.cgi"><span>File - [%= terms.aBug %]</span></a> - </li> - <li> - <a id="query" href="query.cgi"><span>Search</span></a> - </li> - <li> - <a id="account" - [% IF user.id %] - href="userprefs.cgi"><span>User Preferences</span></a> - [% ELSIF Param('createemailregexp') - && user.authorizer.user_can_create_account - %] - href="createaccount.cgi"><span>Open a New Account</span></a> - [% ELSE %] - href="?GoAheadAndLogIn=1"><span>Log In</span></a> - [% END %] - </li> - </ul> - </div> + <a id="enter_bug" class="bz_common_actions" + href="enter_bug.cgi"><span>File [% terms.aBug %]</span></a> + <a id="query" class="bz_common_actions" + href="query.cgi"><span>Search</span></a> + <a id="account" class="bz_common_actions" + [% IF user.id %] + href="userprefs.cgi"><span>User Preferences</span></a> + [% ELSIF Param('createemailregexp') + && user.authorizer.user_can_create_account + %] + href="createaccount.cgi"><span>Open a New Account</span></a> + [% ELSE %] + href="?GoAheadAndLogIn=1"><span>Log In</span></a> + [% END %] <form id="quicksearchForm" name="quicksearchForm" action="buglist.cgi" onsubmit="return checkQuicksearch(this);"> |