pushtype / push_type

PushType is a modern, open source content management system for Ruby on Rails.
http://www.pushtype.org
Other
290 stars 32 forks source link

Remove the "preview" button when editing unexposed nodes #43

Closed aaronrussell closed 7 years ago

aaronrussell commented 7 years ago

Unexposed nodes don't have a corresponding page on the front end, so the preview button is redundant and may even error if a user is curious and clicks it. Should simply be removed when editing unexposed nodes.

- unless @node.unexposed?
  = button