Last.fm connect

This commit is contained in:
Gregory Eremin
2011-09-15 14:44:44 +04:00
parent afdd9885bf
commit 024f1d7af2
3 changed files with 23 additions and 23 deletions
+3 -2
View File
@@ -66,5 +66,6 @@
%label{ :for => "lastfm_username" }= I18n.t 'settings.username'
.input
%input.borderless#lastfm_username{ :type => "text", :readonly => "readonly", :value => (@user.lastfm_username || I18n.t('settings.not_connected')) }
%span.help-inline
%input.btn{ :type => "submit", :value => I18n.t('settings.connect') }
- unless @user.lastfm_username
%span.help-inline
%input.btn.lastfm-connect{ :type => "submit", :value => I18n.t('settings.connect') }