Skip to content

Commit

Permalink
Search box for searching authors.
Browse files Browse the repository at this point in the history
  • Loading branch information
Talina06 committed Jul 13, 2014
1 parent 03a0e1f commit 9eb2075
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 15 deletions.
22 changes: 7 additions & 15 deletions cpanfile.snapshot
Expand Up @@ -2792,16 +2792,17 @@ DISTRIBUTIONS
inc::MakeMaker undef
requirements:
ExtUtils::MakeMaker 6.30
JSON-MaybeXS-1.001000
pathname: M/MS/MSTROUT/JSON-MaybeXS-1.001000.tar.gz
JSON-MaybeXS-1.002002
pathname: E/ET/ETHER/JSON-MaybeXS-1.002002.tar.gz
provides:
JSON::MaybeXS 1.001000
JSON::MaybeXS 1.002002
requirements:
Cpanel::JSON::XS 2.3310
ExtUtils::CBuilder 0.27
ExtUtils::MakeMaker 0
File::Spec 0
File::Temp 0
JSON::PP 2.27202
Test::More 0.88
Test::Without::Module 0.17
perl 5.006
JSON-PP-2.27203
pathname: M/MA/MAKAMAKA/JSON-PP-2.27203.tar.gz
provides:
Expand Down Expand Up @@ -5033,15 +5034,6 @@ DISTRIBUTIONS
Exporter 5.57
ExtUtils::MakeMaker 0
Scalar::Util 0
Scalar-List-Utils-1.38
pathname: P/PE/PEVANS/Scalar-List-Utils-1.38.tar.gz
provides:
List::Util 1.38
List::Util::XS 1.38
Scalar::Util 1.38
requirements:
ExtUtils::MakeMaker 0
Test::More 0
Starman-0.4009
pathname: M/MI/MIYAGAWA/Starman-0.4009.tar.gz
provides:
Expand Down
13 changes: 13 additions & 0 deletions lib/MetaCPAN/Web/Controller/Account.pm
Expand Up @@ -36,6 +36,19 @@ sub identities : Local {
}
}

sub index : Chained('/') PathPart('account') CaptureArgs(0) {
}

sub wot_search : Chained('index') PathPart('trust') Args(0) {
my ( $self, $c ) = @_;
$c->stash(
{
template => 'account/trustlist.html'
}
);

}

sub profile : Local {
my ( $self, $c ) = @_;
my $author = $c->model('API::User')->get_profile( $c->token )->recv;
Expand Down
9 changes: 9 additions & 0 deletions root/account/trustlist.html
@@ -0,0 +1,9 @@
<% PROCESS inc/account-bar.html %>

<div align="center" class="home">
<form action="/searchauthors">
<input type="text" name="q" size="10" autofocus="autofocus" id="search-input" class="autofocus">
<br><br>
<button type="submit" class="btn">Search for Author</button>
</form>
</div>
3 changes: 3 additions & 0 deletions root/inc/account-bar.html
Expand Up @@ -19,6 +19,9 @@
</li>
<li<% IF req.action == 'account/favorite/list' %> class="active"<% END %>>
<a href="/account/favorite/list">Favorites</a>
</li>
<li>
<a href="/account/trust">Trust List</a>
</li>
<li>
<a href="#" onclick="$('#logout').submit(); return false">Logout</a>
Expand Down
1 change: 1 addition & 0 deletions root/wrapper.html
Expand Up @@ -108,6 +108,7 @@
<li><a href="/account/identities">Identities</a></li>
<li><a href="/account/profile">Profile</a></li>
<li><a href="/account/favorite/list">Favorites</a></li>
<li><a href="/account/trust">Trust List</a></li>
<li>
<a href="#" onclick="$('#logout').submit(); return false">Logout</a>
</li>
Expand Down

0 comments on commit 9eb2075

Please sign in to comment.