Skip to content

Commit 2a27324

Browse files
fhembergerskade
authored andcommitted
Show Twitter link for contacts
1 parent 71890aa commit 2a27324

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

source/localizable/index.html.erb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
<span class="supporters--contacts-item-<%= medium %>"><%= contact.send(medium) %></span>
3636
<% end %>
3737
<% end %>
38+
<%= link_to('@' + contact.twitter, 'https://twitter.com/' + contact.twitter, class: 'supporters--contacts-item-twitter') unless contact.twitter.blank? %>
3839
</li>
3940
<% end %>
4041
</ul>

source/stylesheets/style.css.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,8 @@
218218
}
219219

220220
.supporters--contacts-item-phone,
221-
.supporters--contacts-item-email {
221+
.supporters--contacts-item-email,
222+
.supporters--contacts-item-twitter {
222223
color: #888;
223224
display: block;
224225
}

0 commit comments

Comments
 (0)