From 2573dbee44d39730fb23635882edc74a8079ea10 Mon Sep 17 00:00:00 2001 From: Michael Ball Date: Tue, 23 Feb 2021 18:47:27 -0800 Subject: [PATCH] fix the alt text in the conference logo --- app/helpers/application_helper.rb | 2 +- app/views/admin/commercials/index.html.haml | 2 +- app/views/proposals/_form.html.haml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 6984f304..300b91c9 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -192,7 +192,7 @@ module ApplicationHelper def nav_root_link_for(conference = nil) path = conference&.id.present? ? conference_path(conference) : root_path link_to( - image_tag('snapcon_logo.png'), + image_tag('snapcon_logo.png', alt: nav_link_text(conference)), path, class: 'navbar-brand', title: nav_link_text(conference) diff --git a/app/views/admin/commercials/index.html.haml b/app/views/admin/commercials/index.html.haml index 2570fb52..2dbe10a2 100644 --- a/app/views/admin/commercials/index.html.haml +++ b/app/views/admin/commercials/index.html.haml @@ -16,7 +16,7 @@ = semantic_form_for(@commercial, url: admin_conference_commercials_path(conference_id: @conference.short_title)) do |f| = f.input :url, label: 'URL', as: :string, input_html: { required: 'required', autofocus: true }, hint: 'Just paste the url of your video/photo provider. YouTube, Vimeo, SpeakerDeck, SlideShare, Instagram, Flickr.' - = f.action :submit, as: :button, button_html: { class: 'btn btn-primary pull-right', disabled: true }, label: "Save Materials" + = f.action :submit, as: :button, button_html: { class: 'btn btn-primary pull-right', disabled: true } %hr - @commercials.each_slice(3) do |slice| diff --git a/app/views/proposals/_form.html.haml b/app/views/proposals/_form.html.haml index 312e5b1c..7f6716d5 100644 --- a/app/views/proposals/_form.html.haml +++ b/app/views/proposals/_form.html.haml @@ -22,7 +22,7 @@ = semantic_form_for(@event.commercials.build, url: conference_program_proposal_commercials_path(conference_id: @conference.short_title, proposal_id: @event)) do |f| = f.input :url, label: 'URL', as: :string, input_html: { required: 'required', type: 'url' }, hint: 'Just paste the url of your video/photo provider. Currently supported: YouTube, Vimeo, SpeakerDeck, SlideShare, Instagram, Flickr.' - = f.action :submit, as: :button, button_html: { class: 'btn btn-primary pull-right', disabled: true }, label: "Save Materials" + = f.action :submit, as: :button, button_html: { class: 'btn btn-primary pull-right', disabled: true } %hr - @event.commercials.each_slice(3) do |slice| .row