Skip to content

Commit 2a95421

Browse files
committed
Add tooltips to show what companies sponsor
1 parent c160c7d commit 2a95421

File tree

1 file changed

+21
-8
lines changed

1 file changed

+21
-8
lines changed

app/views/custom_widget/show.html.erb

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,28 @@
113113
<div id="sponsors">
114114
<section class='detail-introduction sponsors_logo text-center'>
115115
<h2>スポンサー</h2>
116+
<script type="text/javascript">
117+
$(function () {
118+
$('[data-toggle="tooltip"]').tooltip();
119+
})
120+
</script>
116121
<ul>
117-
<li><a href="https://case-shinjuku.com/">
118-
<%= image_tag "logos/case-shinjuku.png"%></a></li>
119-
<li><a href="http://www.osscafe.net/">
120-
<%= image_tag "logos/osscafe.png"%></a></li>
121-
<li><a href="https://scrivito.com/">
122-
<%= image_tag "logos/scrivito.png"%></a></li>
123-
<li><a href="https://yasslab.jp/">
124-
<%= image_tag "logos/yasslab.png"%></a></li>
122+
<li><%= link_to image_tag('logos/case-shinjuku.png', alt: 'CASE Shinjuku',
123+
data: { toggle: 'tooltip', placement: 'bottom' },
124+
title: 'オフィス提供'),
125+
'https://case-shinjuku.com/' %></li>
126+
<li><%= link_to image_tag("logos/osscafe.png", alt: "下北沢オープンソースCafe",
127+
data: { toggle: 'tooltip', placement: 'bottom' },
128+
title: 'ドメイン代の支援'),
129+
'http://www.osscafe.net/' %></li>
130+
<li><%= link_to image_tag('logos/scrivito.png', alt: 'Scrivito',
131+
data: { toggle: 'tooltip', placement: 'bottom' },
132+
title: 'Cloud-Based CMS の提供'),
133+
'https://scrivito.com/' %></li>
134+
<li><%= link_to image_tag('logos/yasslab.png', alt: 'YassLab',
135+
data: { toggle: 'tooltip', placement: 'bottom' },
136+
title: 'Web開発およびDNS代の支援'),
137+
'https://yasslab.jp/' %></li>
125138
</ul>
126139
</section>
127140
</div>

0 commit comments

Comments
 (0)