diff options
author | Joachim Filip Ignacy Bartosik <jbartosik@gmail.com> | 2010-06-21 18:02:18 +0200 |
---|---|---|
committer | Joachim Filip Ignacy Bartosik <jbartosik@gmail.com> | 2010-06-25 19:39:42 +0200 |
commit | b902e62cfffab7c464a0c4b6108bc55cdaf95d49 (patch) | |
tree | 69f291482dd728c0ba1ff016b7889e90e5c86be3 /app/views/taglibs | |
parent | Added nick to user model (diff) | |
download | recruiting-webapp-b902e62cfffab7c464a0c4b6108bc55cdaf95d49.tar.gz recruiting-webapp-b902e62cfffab7c464a0c4b6108bc55cdaf95d49.tar.bz2 recruiting-webapp-b902e62cfffab7c464a0c4b6108bc55cdaf95d49.zip |
Project acceptances
User has many project acceptances. Project acceptance can be marked as
accepted only by user with proper nick.
Diffstat (limited to 'app/views/taglibs')
-rw-r--r-- | app/views/taglibs/cards.dryml | 16 | ||||
-rw-r--r-- | app/views/taglibs/pages.dryml | 5 |
2 files changed, 20 insertions, 1 deletions
diff --git a/app/views/taglibs/cards.dryml b/app/views/taglibs/cards.dryml index 1e3d513..ca054e5 100644 --- a/app/views/taglibs/cards.dryml +++ b/app/views/taglibs/cards.dryml @@ -8,3 +8,19 @@ </header:> </card> </def> + +<def tag="card" for="ProjectAcceptance"> + <card class="project acceptance" param="default" merge> + <header: param> + <h4 param="heading"> + <a:user><name/></a> + <a action="edit" if="&can_edit?">(edit)</a> + </h4> + </header:> + <body:> + <if test="accepted"> + Accepted by <view:accepting_nick/> + </if> + </body> + </card> +</def> diff --git a/app/views/taglibs/pages.dryml b/app/views/taglibs/pages.dryml index 9ea10ab..e3e554e 100644 --- a/app/views/taglibs/pages.dryml +++ b/app/views/taglibs/pages.dryml @@ -34,7 +34,10 @@ <collection with="&User.all"/> </if> <if test="¤t_user.signed_up?"> - <a with="¤t_user">See your profile</a> + <a with="¤t_user">See your profile</a><br/> + </if> + <if test="¤t_user.try.any_pending_project_acceptances?"> + <a with="&ProjectAcceptance" action="pending_acceptances">Recruits waiting for your acceptance</a>. </if> </section> </def> |