                   onPointerUp: @onPublishPointerUp
                   type: 'button'
                 , EditSong.MSG_PUBLISH
-                song.isPublished() && button
-                  className: 'btn btn-default'
-                  key: 'unpublish'
-                  onPointerUp: @onUnpublishPointerUp
-                  type: 'button'
-                , EditSong.MSG_UNPUBLISH
+                if song.isPublished()
+                  button
+                    className: 'btn btn-default'
+                    key: 'unpublish'
+                    onPointerUp: @onUnpublishPointerUp
+                    type: 'button'
+                  , EditSong.MSG_UNPUBLISH
               ]
             if editMode && song.isPublished()
               p {},

            onPointerUp: @onLyricsHistoryBtnPointerUp
            type: 'button'
          , EditSong.MSG_LYRICS_HISTORY
          lyricsHistoryShown &&
            div {},
              ol {}, lyrics
              p {}, EditSong.MSG_LYRICS_HISTORY_P

                placeholder: EditSong.MSG_WRITE_LYRICS_HERE
                ref: 'lyrics'
                value: song.lyrics
              if userStore.isLogged()
                @renderLocalHistory song
              if !song.inTrash
                p {},
