Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion app/views/layouts/static.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><%= yield(:title) %></title>
<%= render 'shared/google_fonts' %>
<%= stylesheet_link_tag 'application' %>
</head>
<body class="bg-gray-6">
Expand Down
8 changes: 0 additions & 8 deletions app/views/shared/_google_fonts.html.erb

This file was deleted.

7 changes: 0 additions & 7 deletions app/views/shared/_hn_button.html.erb

This file was deleted.

18 changes: 0 additions & 18 deletions app/views/shared/_olark.html.erb

This file was deleted.

31 changes: 11 additions & 20 deletions app/views/users/_card.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,30 @@
<h3 class="black mt0 mb0"><strong><%= user.username %></strong></h3>

<% if user.location? %>
<div class="h6 gray-2 mt0 mb0"><%= user.location %></div>
<div class="h6 gray-2 mt1">
<%= inline_react_component 'Icon', icon: 'map-marker' %>
<%= user.location %>
</div>
<% end %>
</div>

<% if user.bio? %>
<div class="p3 center gray-1 border-top">
<div class="p2 center gray-1 border-top">
<%= react_component 'Markdown', content: markdown(user.bio), normalized: true %>
</div>
<% end %>

<div class="h6 mt0 mb0 center">

<!-- Staff -->
<% if user.staff? %>
<span class="block px3 py2 border-top gray-2" title="Assembly Staff">
<%= inline_react_component 'Icon', icon: 'coffee' %>
Assembly Staff
</span>
<% end %>

<!-- Twitter -->
<% if user.twitter_connected? %>
<a class="block px3 py2 border-top gray-2" href="<%= user.twitter_url %>" title="@<%= @user.twitter_nickname %>">
<a class="block px3 py2 border-top gray-2" href="<%= user.twitter_url %>" target="_blank" title="@<%= @user.twitter_nickname %>">
<%= inline_react_component 'Icon', icon: 'twitter' %>
<%= user.twitter_nickname %>
</a>
Expand All @@ -41,9 +42,8 @@
</a>
<% end %>

<!-- Github -->
<% if user.github_connected? %>
<a class="block px3 py2 border-top gray-2" href="<%= user.github_url %>" title="<%= @user.github_login %>">
<a class="block px3 py2 border-top gray-2" href="<%= user.github_url %>" title="<%= @user.github_login %>" target="_blank">
<%= inline_react_component 'Icon', icon: 'github' %>
<%= @user.github_login %>
</a>
Expand All @@ -56,26 +56,17 @@

<% if current_user %>
<% if current_user.is_staff? %>
<div class="block border-top gray-2 py2" style="font-size: 80%">
Bitcoin Assets Address
<br>
<a href=<%= user.coinprism_url %>>
<%= user.wallet_public_address %>
</a>
<div class="block border-top gray-2 py2">
<span class="block">Bitcoin Assets Address:</span>
<%= link_to user.wallet_public_address, user.coinprism_url %>
</div>
<% end %>
<% end %>

</div>
</div>

<% if can?(:update, @user) %>
<!-- FIXME: This URL is a hack -->
<a class="btn btn-default btn-block" href="<%= edit_user_path %>">
Edit Profile
</a>
<br>
<% end %>
<%= link_to "Edit profile", edit_user_path, class: "btn btn-default btn-block mb2" if can?(:update, @user) %>

<%= react_component 'ProfileProductBadges' %>

Expand Down
1 change: 0 additions & 1 deletion app/views/users/_inline.html.erb

This file was deleted.

10 changes: 0 additions & 10 deletions app/views/users/_more_button.html.erb

This file was deleted.

8 changes: 0 additions & 8 deletions app/views/users/avatars/_default.html.erb

This file was deleted.

8 changes: 0 additions & 8 deletions app/views/users/avatars/_sm.html.erb

This file was deleted.

File renamed without changes.