Sha256: ab7925558cc48b672f567483fd04029acf2f3843f2f5064c267f2c6220c99809
Contents?: true
Size: 1.21 KB
Versions: 6
Compression:
Stored size: 1.21 KB
Contents
format :html do def follow_section return unless show_follow? wrap_with :div, class: "mb-3" do [follow_button_group, followers_board_link, follow_overview_button] end end def follow_button_group wrap_with :div, class: "btn-group btn-group-sm follow-btn-group" do [follow_button, follow_advanced] end end def follow_overview_button link_to_card [Auth.current, :follow], "all followed cards", board_link_opts(class: "btn btn-sm btn-secondary", "data-cy": "follow-overview") end def follow_advanced opts = board_link_opts(class: "btn btn-sm btn-primary", path: { view: :overlay_rule }, "data-cy": "follow-advanced") opts[:path].delete :layout link_to_card card.follow_rule_card(Auth.current.name, new: {}), icon_tag("more_horiz"), opts end def followers_board_link cnt = card.followers_count link_to_card card.name.field(:followers), "#{cnt} follower#{'s' unless cnt == 1}", board_link_opts(class: "btn btn-sm ms-2 btn-secondary slotter", remote: true, "data-cy": "followers") end end
Version data entries
6 entries across 6 versions & 1 rubygems