mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
intiial start on tooltip for long names
This commit is contained in:
parent
ad01635dd9
commit
5021f87efd
1 changed files with 14 additions and 1 deletions
|
@ -14,7 +14,14 @@
|
||||||
|
|
||||||
.row
|
.row
|
||||||
.span1
|
.span1
|
||||||
h5: b style="margin-left: 20px": a href="http://#{site.username}.neocities.org" target="_blank" #{site.username}
|
h5
|
||||||
|
b style="margin-left: 20px"
|
||||||
|
- if site.username.length > 17
|
||||||
|
a href="http://#{site.username}.neocities.org" target="_blank" data-toggle="tooltip" data-original-title="Default tooltip" = site.username[0..17]+'..'
|
||||||
|
- else
|
||||||
|
a href="http://#{site.username}.neocities.org" target="_blank" = site.username
|
||||||
|
|
||||||
|
|
||||||
.span3.text-right
|
.span3.text-right
|
||||||
p style="margin-right: 20px; margin-top: 10px; font-size: 10pt" <strong>#{site.hits} visits</strong>, updated #{site.updated_at.ago}
|
p style="margin-right: 20px; margin-top: 10px; font-size: 10pt" <strong>#{site.hits} visits</strong>, updated #{site.updated_at.ago}
|
||||||
a href="http://#{site.username}.neocities.org" target="_blank": img src="/site_screenshots/#{ENV['RACK_ENV'] == 'development' ? 'victoria' : site.username}.jpg"
|
a href="http://#{site.username}.neocities.org" target="_blank": img src="/site_screenshots/#{ENV['RACK_ENV'] == 'development' ? 'victoria' : site.username}.jpg"
|
||||||
|
@ -30,3 +37,9 @@
|
||||||
|
|
||||||
- if @current_page != @page_count
|
- if @current_page != @page_count
|
||||||
li: a href="/browse?current_page=#{@current_page + 1}": i.icon-arrow-right style="font-size: 12pt"
|
li: a href="/browse?current_page=#{@current_page + 1}": i.icon-arrow-right style="font-size: 12pt"
|
||||||
|
|
||||||
|
javascript:
|
||||||
|
|
||||||
|
$(document).ready(function () {
|
||||||
|
$("[rel='tooltip']").tooltip();
|
||||||
|
});
|
Loading…
Add table
Reference in a new issue