Skip to content

Commit

Permalink
#80 link to markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Mar 15, 2020
1 parent 527088a commit 70fe1e5
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions views/project.haml
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,23 @@
- if project.deleted.nil?
%form{action: iri.cut('/p').append(project.id).append('post'), method: 'POST'}
%fieldset
%label What do you think about it?
%textarea{name: 'text', style: 'width: 100%; height: 8em;', readonly: the_author.karma.points.negative?}
%button{type: 'submit'} Post
%label
= succeed ':' do
%strong.firebrick
ATTENTION
Read our
%a{href: iri.cut('/terms')}
terms of use
and don't abuse the platform.
What do you think about it
(in
= succeed ',' do
%a{href: 'https://daringfireball.net/projects/markdown/syntax'} Markdown
please)?
%textarea{name: 'text', style: 'width: 100%; height: 8em;', readonly: the_author.karma.points.negative?}
%span
%button{type: 'submit'} Post
%label
= succeed ':' do
%strong.firebrick
ATTENTION
Read our
%a{href: iri.cut('/terms')}
terms of use
and don't abuse the platform.

- if project.deleted.nil? && the_author.bot?
- metas = project.meta.all
Expand Down

0 comments on commit 70fe1e5

Please sign in to comment.