liquid_feedback_frontend

annotate app/main/member/avatar.lua @ 3:768faea1096d

Version alpha4

Members interested in an issue or supporting an initiative have a weight information attached. Browsing the members causing that weight is possible.

Initiatives may provide a link to an external discussion platform

Direct link on every initiative page to create an alternative initiative

Bugfix: No error when clicking "neutral", when "neutral" is currently selected
author bsw
date Mon Nov 30 12:00:00 2009 +0100 (2009-11-30)
parents 5c601807d397
children
rev   line source
bsw@2 1 local record = MemberImage:by_pk(param.get_id(), "avatar", true)
bsw/jbe@0 2
bsw@2 3 if record == nil then
bsw@2 4 print('Location: ' .. encode.url{ static = 'avatar.jpg' } .. '\n\n')
bsw/jbe@0 5 exit()
bsw/jbe@0 6 end
bsw/jbe@0 7
bsw@2 8 print('Content-type: ' .. record.content_type .. '\n')
bsw/jbe@0 9
bsw/jbe@0 10 if record then
bsw@2 11 io.stdout:write(record.data)
bsw/jbe@0 12 else
bsw/jbe@0 13 end
bsw/jbe@0 14
bsw/jbe@0 15 exit()

Impressum / About Us