Sha256: e1de2b2096bf08c4c589489c83277ad4bf6168473515b12e38f76124fb28e5dc
Contents?: true
Size: 1.54 KB
Versions: 10
Compression:
Stored size: 1.54 KB
Contents
- @reader_session ||= ReaderSession.new - no_title ||= false - purpose ||= false .login_form - cssclass = "compact friendly" - cssclass << " inline" if @inline - form_for @reader_session, :url => reader_session_path, :html => {:class => cssclass} do |f| - unless no_title %h2 - if purpose = t(purpose) + ',' = t('please') - else = t('please') = t('log_in') - if Radiant::Config['reader.allow_registration?'] = t('or') = link_to t('register'), new_reader_url - if @error %p.haserror = t('login_unknown') %br = link_to t('forgotten_password'), new_password_reset_url %p{ :class => @reader_session.errors.on(:login) ? 'haserror' : '' } %label{:for => "reader_session_login"} = t('username').titlecase %br = f.text_field :login, :class => 'login' %p{ :class => @reader_session.errors.on(:password) ? 'haserror' : '' } %label{:for => "reader_session_password"} = t('password').titlecase %br = f.password_field :password, :class => 'login' %p.buttons = f.submit ' Log in ' = f.check_box :remember_me %label.paranthetical{:for => "reader_session_remember_me"} = t('remember_me') %ul.quiet - if Radiant::Config['reader.allow_registration?'] %li = link_to "registration".titlecase, new_reader_url = t('is_free_and_quick') %li = link_to t("forgotten_password").titlecase, new_password_reset_url
Version data entries
10 entries across 10 versions & 1 rubygems