Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Mentat Test 3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
713
Mentat
Mentat Test 3
Commits
a1bc0d91
Commit
a1bc0d91
authored
7 years ago
by
Jan Mach
Browse files
Options
Downloads
Patches
Plain Diff
Added support for Bootstrap tooltips.
(Redmine issue: #3734)
parent
adaef13d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
lib/hawat/blueprints/design/static/js/hawat-common.js
+47
-0
47 additions, 0 deletions
lib/hawat/blueprints/design/static/js/hawat-common.js
lib/hawat/blueprints/design/templates/_layout.html
+5
-2
5 additions, 2 deletions
lib/hawat/blueprints/design/templates/_layout.html
with
52 additions
and
2 deletions
lib/hawat/blueprints/design/static/js/hawat-common.js
0 → 100644
+
47
−
0
View file @
a1bc0d91
$
(
function
()
{
// Initialize date and datetime picker components.
//$('.datepicker').datetimepicker({
// //locale: 'en',
// format: 'YYYY-MM-DD'
//});
//$('.datetimepicker').datetimepicker({
// //locale: 'en',
// format: 'YYYY-MM-DD HH:mm:ss'
//});
// Initialize linked date and datetime picker components.
//$('#datetimepicker-from').datetimepicker({
// //locale: 'en',
// format: 'YYYY-MM-DD HH:mm:ss'
//});
//$('#datetimepicker-to').datetimepicker({
// //locale: 'en',
// format: 'YYYY-MM-DD HH:mm:ss',
// useCurrent: false //Important! See issue #1075
//});
//$("#datetimepicker-from").on("dp.change", function (e) {
// $('#datetimepicker-to').data("DateTimePicker").minDate(e.date);
//});
//$("#datetimepicker-to").on("dp.change", function (e) {
// $('#datetimepicker-from').data("DateTimePicker").maxDate(e.date);
//});
// Initialize select pickers.
//$('.selectpicker').selectpicker();
// Initialize tooltips.
$
(
'
body
'
).
tooltip
({
selector
:
"
[data-toggle=tooltip]
"
,
container
:
"
body
"
,
});
// Tooltips for navbar tabs require special handling.
$
(
'
.nav-tabs-tooltipped
'
).
tooltip
({
selector
:
"
[data-toggle=tab]
"
,
trigger
:
'
hover
'
,
placement
:
'
top
'
,
animate
:
true
,
container
:
'
body
'
});
});
This diff is collapsed.
Click to expand it.
lib/hawat/blueprints/design/templates/_layout.html
+
5
−
2
View file @
a1bc0d91
...
...
@@ -52,7 +52,7 @@
{{ macros_site.render_submenu_auth() }}
{{ macros_site.render_locale_switcher() }}
<li
{%
if
request.endpoint =
=
"
help.view
"
%}
class=
"active"
{%
endif
%}
>
<a
href=
"{{ url_for('help.view') }}"
title=
"{{ gettext('Help') }}"
>
{{ get_fa_icon('help') }} {{ gettext('Help') }}
</a>
<a
href=
"{{ url_for('help.view') }}"
data-toggle=
"tooltip"
data-placement=
"bottom"
title=
"{{ gettext('Help') }}"
>
{{ get_fa_icon('help') }} {{ gettext('Help') }}
</a>
</li>
</ul>
</div>
<!-- #navbar -->
...
...
@@ -69,7 +69,9 @@
<!-- Flashed messsages - BEGIN ------------------------------------>
<div
class=
"alert alert-{% if category == 'message' %}info{% else %}{{ category }}{% endif %} alert-dismissible"
>
<button
type=
"button"
class=
"close"
data-dismiss=
"alert"
aria-label=
"{{ gettext('Close') }}"
><span
aria-hidden=
"true"
>
×
</span></button>
<button
type=
"button"
class=
"close"
data-dismiss=
"alert"
data-toggle=
"tooltip"
aria-label=
"{{ gettext('Close') }}"
title=
"{{ gettext('Close') }}"
>
<span
aria-hidden=
"true"
>
×
</span>
</button>
{{ message }}
</div>
<!-- Flashed messsages - END -------------------------------------->
...
...
@@ -97,6 +99,7 @@
<script
src=
"{{ url_for('design.static', filename='vendor/jquery/js/jquery.min.js') }}"
></script>
<script
src=
"{{ url_for('design.static', filename='vendor/bootstrap/js/bootstrap.min.js') }}"
></script>
<script
src=
"{{ url_for('design.static', filename='vendor/bootstrap-select/js/bootstrap-select.min.js') }}"
></script>
<script
src=
"{{ url_for('design.static', filename='js/hawat-common.js') }}"
></script>
{%- endblock js %}
{%- endblock body %}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment