diff options
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/layouts/public.html.haml | 2 | ||||
-rw-r--r-- | app/views/statuses/_poll.html.haml | 10 |
2 files changed, 7 insertions, 5 deletions
diff --git a/app/views/layouts/public.html.haml b/app/views/layouts/public.html.haml index fb9ac5cec..eaa0437c2 100644 --- a/app/views/layouts/public.html.haml +++ b/app/views/layouts/public.html.haml @@ -38,7 +38,7 @@ %h4= t 'footer.developers' %ul %li= link_to t('about.documentation'), 'https://docs.joinmastodon.org/' - %li= link_to t('about.api'), 'https://docs.joinmastodon.org/api/guidelines/' + %li= link_to t('about.api'), 'https://docs.joinmastodon.org/client/intro/' .column-2 %h4= link_to t('about.what_is_mastodon'), 'https://joinmastodon.org/' = link_to svg_logo, root_url, class: 'brand' diff --git a/app/views/statuses/_poll.html.haml b/app/views/statuses/_poll.html.haml index c17476657..de5357e6d 100644 --- a/app/views/statuses/_poll.html.haml +++ b/app/views/statuses/_poll.html.haml @@ -12,14 +12,16 @@ %span.poll__number>< - if own_votes.include?(index) %i.poll__voted__mark.fa.fa-check - = percent.round - = Formatter.instance.format_poll_option(status, option, autoplay: autoplay) + = "#{percent.round}%" + %span.poll__option__text + = Formatter.instance.format_poll_option(status, option, autoplay: autoplay) - %span.poll__chart{ style: "width: #{percent}%" } + %span.poll__chart{ style: "width: #{percent}%" } - else %label.poll__option>< %span.poll__input{ class: poll.multiple? ? 'checkbox' : nil}>< - = Formatter.instance.format_poll_option(status, option, autoplay: autoplay) + %span.poll__option__text + = Formatter.instance.format_poll_option(status, option, autoplay: autoplay) .poll__footer - unless show_results %button.button.button-secondary{ disabled: true } |