.columns
  .one-fourth.column
    = avatar(@user, size: 230)
    h2 = @user.name
  .three-fourths.column
    .pb-3.clearfix
      a.btn.btn-primary.float-right href="#{style_path(@conn, :new, @user.name)}" = gettext "New tweak"
    = if Enum.count(@styles) == 0 do
      .blankslate
        span.mega-octicon.octicon-pencil
        h3 = gettext "This is where your tweaks will be listed"
        p = gettext "Click \"New tweak\" above to get started!"
    - else
      h3 = gettext "Styles"
      = render_many(@styles, AtomStyleTweaks.StyleView, "table_row.html", conn: @conn)

.columns
  .one-fourth.column
    = avatar(@user, size: 230)
    h2 = @user.name
  .three-fourths.column
    = if !is_nil(@current_user) && @current_user.name == @user.name do
      .pb-3.clearfix
        a.btn.btn-primary.float-right href="#{style_path(@conn, :new, @user.name)}" = gettext "New tweak"
    = if Enum.count(@styles) == 0 do
      .blankslate
        span.mega-octicon.octicon-pencil
        h3 = gettext "This is where your tweaks will be listed"
        p = gettext "Click \"New tweak\" above to get started!"
    - else
      h3 = gettext "Styles"
      = render_many(@styles, AtomStyleTweaks.StyleView, "table_row.html", conn: @conn)

Remove new tweak button from user show page when current user isn't user shown
Remove new tweak button from user show page when current user isn't user shown

lee-dohm/atom-style-tweaks,lee-dohm/atom-style-tweaks,lee-dohm/atom-style-tweaks,lee-dohm/atom-style-tweaks