nitc :: PagePerson
nitc :: PagePerson :: _html_url
nitc :: PagePerson :: _title
nitc :: PagePerson :: defaultinit
nitc $ PagePerson :: SELF
Type of this instance, automatically specialized in every classnitc :: static_structure $ PagePerson :: apply_structure
Create the structure of this pagenitc :: PagePerson :: _html_url
template :: Template :: _is_frozen
Is the template allowing more modification (add
)
template :: Template :: _is_writing
Flag to avoid infinite recursivity if a template contains itselfnitc :: DocPage :: _piwik_script
Piwik script to append in the page scriptstemplate :: Template :: _render_done
Flag to avoid multiple renderingnitc :: PagePerson :: _title
nitc :: DocPage :: apply_structure
Create the structure of this pagecore :: Object :: class_factory
Implementation used byget_class
to create the specific class.
template :: Template :: defaultinit
nitc :: DocPage :: defaultinit
nitc :: PagePerson :: defaultinit
core :: Object :: defaultinit
core :: Writable :: defaultinit
template :: Template :: is_frozen=
Is the template allowing more modification (add
)
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
template :: Template :: is_writing
Flag to avoid infinite recursivity if a template contains itselftemplate :: Template :: is_writing=
Flag to avoid infinite recursivity if a template contains itselfcore :: Object :: native_class_name
The class name of the object in CString format.core :: Object :: output_class_name
Display class name on stdout (debug only).nitc :: DocPage :: piwik_script
Piwik script to append in the page scriptsnitc :: DocPage :: piwik_script=
Piwik script to append in the page scriptstemplate :: Template :: render_done=
Flag to avoid multiple renderingcore :: Writable :: write_to_bytes
Likewrite_to
but return a new Bytes (may be quite large)
core :: Writable :: write_to_file
Likewrite_to
but take care of creating the file
core :: Writable :: write_to_string
Likewrite_to
but return a new String (may be quite large).
redef class PagePerson
redef fun apply_structure(doc) do
var mpackages_sorter = new CatalogScoreSorter(doc.catalog)
main_tab.content.add new CardPageHeader(person.name, person.email)
var maint = doc.catalog.maint2proj[person]
mpackages_sorter.sort maint
var mlist = new CardList("maintained", "Maintained")
for mpackage in maint do
mlist.cards.add new CardCatalogPackage(doc.catalog, mpackage)
end
# TODO pagination?
if maint.not_empty then
main_tab.content.add new CardSection(3, "{maint.length} maintained packages")
main_tab.content.add mlist
end
var contrib = doc.catalog.contrib2proj[person]
mpackages_sorter.sort contrib
var clist = new CardList("contribs", "Contributed")
for mpackage in contrib do
clist.cards.add new CardCatalogPackage(doc.catalog, mpackage)
end
# TODO pagination?
if contrib.not_empty then
main_tab.content.add new CardSection(3, "{contrib.length} contributed packages")
main_tab.content.add clist
end
end
end
src/doc/static/static_structure.nit:373,1--404,3
redef class PagePerson
redef var html_url is lazy do return person.html_url
end
src/doc/static/static_html.nit:193,1--195,3