index.html.haml 1.01 KB
Newer Older
Eugen Rochko's avatar
Eugen Rochko committed
1 2 3
.page-heading
  %h3
    Your friends
4
    %small Here are your Twitter friends who are on Mastodon:
Eugen Rochko's avatar
Eugen Rochko committed
5

6
- if @friends.empty?
7 8 9 10 11 12
  %p.empty-message Well, this is unfortunate. Looks like none of your Twitter friends are on Mastodon yet. Or maybe they are, but haven't signed in to this bridge service.

  - if current_user.mastodon.nil?
    %p.empty-message Here are some instances you could choose to make your account on:
  - else
    %p.empty-message Here are some instances you could recommend to your friends:
13
- else
14 15
  = render 'friends_grid', friends: @friends

Eugen Rochko's avatar
Eugen Rochko committed
16 17 18 19 20 21 22 23 24 25 26
  - if @next_page || @page > 1
    .pagination
      - if @page > 1
        = link_to friends_path(page: @page - 1) do
          = fa_icon('chevron-left fw')
          Previous
      - if @next_page
        = link_to friends_path(page: @next_page) do
          Next
          = fa_icon('chevron-right fw')

27 28 29 30
  .page-heading
    %h3
      Your friends' instances
      %small Here are the instances your friends are using:
31

32
= render 'instances_grid', instances: @top_instances