diff options
author | 2010-07-20 17:01:45 +0200 | |
---|---|---|
committer | 2010-07-27 23:02:44 +0200 | |
commit | 647a10f31f3e4a5c359f8dd3764530d06512f52a (patch) | |
tree | 2f9136e2a641d32d850862cc15277c2461d86998 | |
parent | Removed form for question content from question edit page (wasn't rendered) (diff) | |
download | recruiting-webapp-647a10f31f3e4a5c359f8dd3764530d06512f52a.tar.gz recruiting-webapp-647a10f31f3e4a5c359f8dd3764530d06512f52a.tar.bz2 recruiting-webapp-647a10f31f3e4a5c359f8dd3764530d06512f52a.zip |
Moved navigation tag to separate file
-rw-r--r-- | app/views/taglibs/application.dryml | 11 | ||||
-rw-r--r-- | app/views/taglibs/nav.dryml | 9 |
2 files changed, 10 insertions, 10 deletions
diff --git a/app/views/taglibs/application.dryml b/app/views/taglibs/application.dryml index c31d698..1261e5e 100644 --- a/app/views/taglibs/application.dryml +++ b/app/views/taglibs/application.dryml @@ -13,13 +13,4 @@ <include src="forms"/> <include src="detailed"/> <include src="pages"/> - -<def tag="main-nav"> - <navigation class="main-nav" merge-attrs param="default"> - <nav-item href="#{base_url}/">Home</nav-item> - <nav-item with="&QuestionCategory"><ht key="question_categories.nav_item">Question Categories</ht></nav-item> - <nav-item with="&QuestionGroup" action="category"><ht key="question_groups.nav_item">Question Groups</ht></nav-item> - <nav-item href="&suggest_questions_questions_path"><ht key="questions.nav_item">Suggestion Questions</ht></nav-item> - <nav-item href="&approve_questions_questions_path" if="¤t_user.questions_to_approve.count > 0"><ht key="questions.nav_item">Approve Questions</ht></nav-item> - </navigation> -</def> +<include src="nav"/> diff --git a/app/views/taglibs/nav.dryml b/app/views/taglibs/nav.dryml new file mode 100644 index 0000000..70756d6 --- /dev/null +++ b/app/views/taglibs/nav.dryml @@ -0,0 +1,9 @@ +<def tag="main-nav"> + <navigation class="main-nav" merge-attrs param="default"> + <nav-item href="#{base_url}/">Home</nav-item> + <nav-item with="&QuestionCategory"><ht key="question_categories.nav_item">Question Categories</ht></nav-item> + <nav-item with="&QuestionGroup" action="category"><ht key="question_groups.nav_item">Question Groups</ht></nav-item> + <nav-item href="&suggest_questions_questions_path"><ht key="questions.nav_item">Suggestion Questions</ht></nav-item> + <nav-item href="&approve_questions_questions_path" if="¤t_user.questions_to_approve.count > 0"><ht key="questions.nav_item">Approve Questions</ht></nav-item> + </navigation> +</def> |