         $("#config-applications-view").append @popover.$el
         @popover.show()
 
+
     onUpdateClicked: ->
         action = (cb) =>
             {success, error} = cb or {}

UpdateStackModal = require './update_stack_modal'
AppsCollection = require '../collections/application'

module.exports = class ConfigApplicationsView extends BaseView
    id: 'config-applications-view'
    template: require 'templates/config_applications'

                @$(".#{app.get 'name'}").css 'color', "Red"
                @toUpdate = true

        @showOrHideUpdateBtn()


    displayDevices: =>
        if not(@devices.length is 0)
            @$el.find('.title-device').after @deviceList.$el
        else
            @$el.find('.title-device').after "<div class='no-device'><p>#{t 'status no device'}</p><p>#{t 'mobile app promo'}</p><a target='_blank' href='https://play.google.com/store/apps/details?id=io.cozy.files_client'><img src='http://developer.android.com/images/brand/en_app_rgb_wo_45.png'></a><a role='button' href='https://files.cozycloud.cc/android/CozyMobile_lastest.apk'><i class='fa fa-android'></i><span>#{t 'download apk'}<span></a></div>"


    fetch: =>
        @$('.amount').html "--"
