Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
website
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gruppo Ask
website
Commits
1aeece65
Commit
1aeece65
authored
Sep 24, 2012
by
Leo Iannacone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Capitalize via css instead of js
parent
49cf5c74
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
17 deletions
+1
-17
forum/skins/light/media/js/ask.jquery.header.string.replace.js
.../skins/light/media/js/ask.jquery.header.string.replace.js
+0
-15
forum/skins/light/media/style/style.css
forum/skins/light/media/style/style.css
+1
-0
forum/skins/light/templates/header.html
forum/skins/light/templates/header.html
+0
-2
No files found.
forum/skins/light/media/js/ask.jquery.header.string.replace.js
deleted
100755 → 0
View file @
49cf5c74
/*
* Title: jQuery header string replace
* Description: customize header link in order to capitalize first letter using jquery replaceWith method.
*
* Copyright (c) 2012 Ubuntu-it Ask Team - https://launchpad.net/~ubuntu-it-ask
* GNU GPL 3 LICENSE
*/
$
(
'
#header li #nav_index
'
).
replaceWith
(
'
<a id="nav_index" href="/">Home</a>
'
);
$
(
'
#header li #nav_questions
'
).
replaceWith
(
'
<a id="nav_questions" href="/questions/">Domande</a>
'
);
$
(
'
#header li #nav_tags
'
).
replaceWith
(
'
<a id="nav_tag" href="/tags/">Tag</a>
'
);
$
(
'
#header li #nav_users
'
).
replaceWith
(
'
<a id="nav_users" href="/users/">Utenti</a>
'
);
$
(
'
#header li #nav_badges
'
).
replaceWith
(
'
<a id="nav_badges" href="/badges/">Badge</a>
'
);
$
(
'
#header li #nav_unanswered
'
).
replaceWith
(
'
<a id="nav_unanswered" href="/questions/unanswered/">Senza risposta</a>
'
);
$
(
'
#header li #nav_ask
'
).
replaceWith
(
'
<a id="nav_ask" class="special" href="/questions/ask/">Chiedi</a>
'
);
forum/skins/light/media/style/style.css
View file @
1aeece65
...
@@ -242,6 +242,7 @@ blockquote blockquote {
...
@@ -242,6 +242,7 @@ blockquote blockquote {
margin
:
0
;
margin
:
0
;
padding-right
:
2px
;
padding-right
:
2px
;
list-style
:
none
;
list-style
:
none
;
text-transform
:
capitalize
;
}
}
#header
li
a
{
#header
li
a
{
...
...
forum/skins/light/templates/header.html
View file @
1aeece65
...
@@ -11,8 +11,6 @@
...
@@ -11,8 +11,6 @@
<li><a
id=
"nav_ask"
href=
"{% url ask %}"
class=
"special"
>
{% trans "ask a question" %}
</a></li>
<li><a
id=
"nav_ask"
href=
"{% url ask %}"
class=
"special"
>
{% trans "ask a question" %}
</a></li>
</ul>
</ul>
<script
type=
"text/javascript"
src=
"/m/light/media/js/ask.jquery.header.string.replace.js"
></script>
<div
id=
"logo"
>
<div
id=
"logo"
>
<div
id=
"ubuntu-it-sites"
>
<div
id=
"ubuntu-it-sites"
>
<a
id=
""
href=
"http://www.ubuntu-it.org"
>
web
</a>
<a
id=
""
href=
"http://www.ubuntu-it.org"
>
web
</a>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment