Skip to content

Commit

Permalink
fix wiki bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki-kimoto committed May 30, 2017
1 parent e2cd23a commit c6d2f98
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions templates/wiki.html.ep
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,13 @@
my $exists_footer;
my $content_sidebar_md;
my $content_footer_md;

# Pages count
my $pages_count;

# Commits number
my $commits_number;

if ($new) {
$display = 'new';
unless ($wiki) {
Expand All @@ -121,6 +128,9 @@
}
else {
if ($wiki) {
$pages_count = $api->get_wiki_pages_count($user_id, $project_id);
$commits_number = app->git->commits_number(app->wiki_rep_info($user_id, $project_id), 'master');

if ($edit) {
$content = $api->get_wiki_page_content($user_id, $project_id, $title);
if (defined $content) {
Expand Down Expand Up @@ -174,12 +184,6 @@
}
}

# Pages count
my $pages_count = $api->get_wiki_pages_count($user_id, $project_id);

# Commits number
my $commits_number = app->git->commits_number(app->wiki_rep_info($user_id, $project_id), 'master');

layout 'common', title => "Wiki - $user_id/$project_id";
%>

Expand Down

0 comments on commit c6d2f98

Please sign in to comment.